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

**URL:** <https://forum.freecodecamp.org/t/data-visualize-with-heatmap-tests-not-recognizing-cell-properties/236818>\
**Category:** I Built This\
**Created:** [October 29, 2018, 2:36pm UTC](https://forum.freecodecamp.org/t/data-visualize-with-heatmap-tests-not-recognizing-cell-properties/236818 "2018-10-29T14:36:21Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![fendermaniac](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/fendermaniac/32/96934_2.png) [@fendermaniac](https://forum.freecodecamp.org/u/fendermaniac)\
**Post date:** [October 29, 2018, 2:36pm UTC](https://forum.freecodecamp.org/t/data-visualize-with-heatmap-tests-not-recognizing-cell-properties/236818/1 "2018-10-29T14:36:21Z")

</div>

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?

> **[FCC Heatmap](https://codepen.io/fendermaniac/pen/GYzBaR)**
>
> ...

Thanks!

---

<div class="post-metadata">

**Author:** ![marcodsman](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/marcodsman/32/112241_2.png) [@marcodsman](https://forum.freecodecamp.org/u/marcodsman)\
**Post date:** [April 17, 2019, 1:48pm UTC](https://forum.freecodecamp.org/t/data-visualize-with-heatmap-tests-not-recognizing-cell-properties/236818/2 "2019-04-17T13:48:16Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![fendermaniac](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/fendermaniac/32/96934_2.png) [@fendermaniac](https://forum.freecodecamp.org/u/fendermaniac)\
**Post date:** [April 17, 2019, 2:03pm UTC](https://forum.freecodecamp.org/t/data-visualize-with-heatmap-tests-not-recognizing-cell-properties/236818/3 "2019-04-17T14:03:12Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![marcodsman](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/marcodsman/32/112241_2.png) [@marcodsman](https://forum.freecodecamp.org/u/marcodsman)\
**Post date:** [April 17, 2019, 7:46pm UTC](https://forum.freecodecamp.org/t/data-visualize-with-heatmap-tests-not-recognizing-cell-properties/236818/4 "2019-04-17T19:46:28Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![fendermaniac](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/fendermaniac/32/96934_2.png) [@fendermaniac](https://forum.freecodecamp.org/u/fendermaniac)\
**Post date:** [April 18, 2019, 2:34pm UTC](https://forum.freecodecamp.org/t/data-visualize-with-heatmap-tests-not-recognizing-cell-properties/236818/5 "2019-04-18T14:34:05Z")

</div>

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:

> **[d3/d3-hierarchy](https://github.com/d3/d3-hierarchy)**
>
> 2D layout algorithms for visualizing hierarchical data. - d3/d3-hierarchy

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

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [February 6, 2021, 1:38pm UTC](https://forum.freecodecamp.org/t/data-visualize-with-heatmap-tests-not-recognizing-cell-properties/236818/6 "2021-02-06T13:38:13Z")

</div>


