D3 Treemap - help wanted

D3 Treemap - help wanted
0

#1

Can anyone help with this?
I have no clue how to calculate the correct area of each rectangle.


#2

get it figured out? they look the right size at first glance


#3

Take out “.round(true)”, line 12 of your javascript. That command tells the treemap to round off the areas of the rectangles, which the test isn’t configured for. I forked the code and took out the ‘.round(true)’ and it passed that test.


#4

Cheers, and thanks for the explanation. :+1: