Bar Chart Project (D3)

Tell us what’s happening:

Ok, so now I have the “data-date” and “data-gdp” properties in place but I don’t know how to access them to set the x position.

I was thinking that I could just set the x position to the data-date and maybe I would need to use the range again for this one too?

Your code so far

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.129 Safari/537.36.

Challenge: Visualize Data with a Bar Chart

Link to the challenge:

Any ideas on this? I’ve managed to write something that works but it’s not passing test 10 so I’m guessing there is another route I should’ve taken here