Visualize Data with a Scatterplot Graph error at cx,cy values

Tell us what’s happening:

Here is the link to my Codepen Scatterplot https://codepen.io/Waerjak/pen/jQMOYe

I am getting the error:
Error: attribute cy: Expected length, “NaN”.
Error: attribute cx: Expected length, “NaN”.

But when I console.log the values of d.Time and d.Year they appear normally.

Your code so far

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36.

Link to the challenge:

.domain() needs an array as argument :wink:

1 Like

Great thanks a lot ! :slight_smile:

1 Like