# Scatterplot Test #8

**URL:** <https://forum.freecodecamp.org/t/scatterplot-test-8/221758>\
**Category:** General\
**Created:** [August 28, 2018, 7:28am UTC](https://forum.freecodecamp.org/t/scatterplot-test-8/221758 "2018-08-28T07:28:58Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![javineya](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/javineya/32/83511_2.png) [@javineya](https://forum.freecodecamp.org/u/javineya)\
**Post date:** [August 28, 2018, 7:28am UTC](https://forum.freecodecamp.org/t/scatterplot-test-8/221758/1 "2018-08-28T07:28:58Z")

</div>

`8. The data-yvalue and its corresponding dot should align with the corresponding point/value on the y-axis.`  
Cannot read property ‘length’ of null

I’ve got all other tests passing, and the values line up visually just fine. I’m not sure where the test is trying to read `length` so I have no idea how to fix this one.

> **[FCC: Scatterplot Graph](https://codepen.io/JesterVae/pen/JajaZr?editors=0010)**
>
> ...

---

<div class="post-metadata">

**Author:** ![javineya](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/javineya/32/83511_2.png) [@javineya](https://forum.freecodecamp.org/u/javineya)\
**Post date:** [August 30, 2018, 6:43am UTC](https://forum.freecodecamp.org/t/scatterplot-test-8/221758/2 "2018-08-30T06:43:56Z")

</div>

Everything works how I want it to. The values are displaying correctly, the axes are lined up correctly…but I can’t submit the solution because Test #8 isn’t passing.

I’ve been stuck on this for days, trying everything I can think of. I’m clearly missing something. I guess it’s because my `data-yvalue` and the actual `y` value are using different numbers, but I’ve tried everything I can think of to align them and nothing seems to make Test #8 happy.

Any ideas?

---

<div class="post-metadata">

**Author:** ![SpaniardDev](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/spaniarddev/32/89850_2.png) [@SpaniardDev](https://forum.freecodecamp.org/u/SpaniardDev)\
**Post date:** [August 30, 2018, 9:02am UTC](https://forum.freecodecamp.org/t/scatterplot-test-8/221758/3 "2018-08-30T09:02:38Z")

</div>

`.domain([minSec, maxSec])`

---

<div class="post-metadata">

**Author:** ![javineya](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/javineya/32/83511_2.png) [@javineya](https://forum.freecodecamp.org/u/javineya)\
**Post date:** [August 30, 2018, 11:52am UTC](https://forum.freecodecamp.org/t/scatterplot-test-8/221758/4 "2018-08-30T11:52:33Z")

</div>

Once again, I made a domain mistake–though a different kind since the requirements were different. Once again, you pointed me in the right direction. Thank you, @SpaniardDev.

I had to change my `y-axis` values and my `data-yvalue` and my `tickformat` to get it all working, but it finally passes all the tests.

Now I can move on and get frustrated by the next D3/SVG project! Cheers!

---

<div class="post-metadata">

**Author:** ![SpaniardDev](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/spaniarddev/32/89850_2.png) [@SpaniardDev](https://forum.freecodecamp.org/u/SpaniardDev)\
**Post date:** [August 30, 2018, 1:14pm UTC](https://forum.freecodecamp.org/t/scatterplot-test-8/221758/5 "2018-08-30T13:14:33Z")

</div>

Good luck on your D3 journey! 😄

---

<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:** [January 17, 2021, 8:16pm UTC](https://forum.freecodecamp.org/t/scatterplot-test-8/221758/6 "2021-01-17T20:16:47Z")

</div>


