D3 Scatter Plot [New Curriculum]

I have completed my project but am not able to pass the one test mentioned below:

8. The data-yvalue and its corresponding dot should align with the corresponding point/value on the y-axis.

I have tried out the solution suggested in a similar query (D3 beta scatter plot. Missing one test) when the curriculum was in beta, but it doesn’t seem to work anymore!

Also I found that the sample pen (https://codepen.io/freeCodeCamp/pen/bgpXyK) given also does not pass all the tests, as can be seen in the screenshot below.

Interestingly I found another pen (https://codepen.io/paycoguy/pen/ObdByK?editors=0010) from the time when the curriculum was still in beta and samples were being developed, and it passes all the tests. Surprisingly the code is almost completely identical.

I wonder if there’s bug in the tests :thinking:


I had the same problem and it seems that there was a problem with formatting. As soon as I applied toISOString() function to date object passed to data-yvalue attrbute I passed this test.