D3.js Bar Chart - How do I add this 'data-data' property to my bar graph?

Tell us what’s happening:
I have the graph already working functionally similar to the example given in the challenge… but I am not passing a bunch of the tests. I think it all comes down to ’ User Story #6: Each bar should have the properties data-date and data-gdp containing date and GDP values.’ I can’t figure out what it is asking me to do. I added data-data as an id to my <rect> elements and the data is going to the right place… I don’t know what is up.

Your code so far

Your browser information:

User Agent is: Chrome/97.0.4692.99

Challenge: Visualize Data with a Bar Chart

Link to the challenge:

data-date and data-gdp should be attributes, not ids.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.