I have almost finished this last Data Visualization Project. But I can’t seem to pass Test #6: The area of each tile should correspond to the data-value amount: tiles with a larger data-value should have a bigger area. I think it might have to do with round off of the areas.
I figured out what the problem was, and I’m very unhappy about this test. It turns out it was a round off issue caused by my original width and height for the entire diagram. When I changed that width and height to the same dimensions as the sample solution, the area calculations worked out.
This test failure was not caused by a problem with my code, but with not choosing the exact size of the containing svg to fit in with the test values.
I had the same issue, yet my problem was the shape of my treemap. Be advised your project would not pass the 6th test if your treemap is a squire. Have a good day