Data Visualization with D3

Data Visualization with D3
0

#1

Tell us what’s happening:

hi all
i am still getting that the answer is incorrect, any suggestion ?

Your code so far


<body>
  <script>
    const dataset = [12, 31, 22, 17, 25, 18, 29, 14, 9];
    
     d3.select("body").selectAll("h2")
        .data(dataset)
        .enter()
        .append("h2")
     
        .text((d) => d + " USD ");
           
  </script>
</body>

Your browser information:

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

Link to the challenge:
https://learn.freecodecamp.org/data-visualization/data-visualization-with-d3/work-with-dynamic-data-in-d3


#2

ok i found the answer in the following question
here is the answer anyway
d3.select(“body”).selectAll(“h2”)
.data(dataset)
.enter()
.append(“h2”)
.text((d) => (d + " USD"))


#3

You have whitespace after “USD”