Data Visualize with Heatmap. Test's not recognizing cell properties

Hi,

I’m working on my Heat Map project right now and I can’t seem to pass test 7.

7. Each cell will have the properties “data-month”, “data-year”, “data-temp” containing their corresponding month, year, and temperature values.

Could not find property “data-month” in cell : expected null to not equal null

But when you look at each individual cell element, you can see the data-month attribute with the applicable month. What am I missing?

Thanks!

Did you figure it out? I’m having a similar issue with “data-category” in the Tree Map project.

Hey,

I was able to figure it out. It’s been awhile, so I can’t remember what I did. Do you have a link to your treemap project? I could take a look.

1 Like

Thanks. Here’s what I have so far: https://codepen.io/marcods/pen/zXEbdj?editors=1010

So I took a look at your project and I was able to get the test to pass on your project.

I’ll give you a hint. root.descendants() is not the correct method to call. It’s creating a rect that is grouping the child rect’s. The test is looking at the parent node.

There is another option in the documentation:

Let me know if you still can’t figure it out.

1 Like