TreeMap Test #5 & #6

TreeMap Test #5 & #6
0

#1

Hello,

I’m having trouble passing tests #5 & #6 for my TreeMap project.

For test #5 (Each tile should have the properties “data-name”, “data-category”, and “data-value” containing their corresponding name, category, and value) when I inspect each ‘rect’ I can see each property with it’s associated value. I can’t figure out why it won’t pass when those values are there.

For 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) it’s working visually, but I’m not sure why it won’t pass the test.

Here is a link to my Codepen: https://codepen.io/ttstauss/pen/OoBZmR

Any help would be appreciated!

Thanks,
Taylor


#2

I am having exactly the same problem. Can anybody help? It really a pain because as he say when inspecting the rect has these “data” properties


#3

take a look at here D3 TreeMap Diagram - Test #6 won't pass