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!