Basically I can only get up to 12 USD and anything time I try complate the rest of task it just keeps saying error I literally don't know what to do

Tell us what’s happening:
Describe your issue in detail here.

  **Your code so far**

  const dataset = [12, 31, 22, 17, 25, 18, 29, 14, 9];"body").selectAll("h2")
    // Add your code below this line

    .text("12 USD");

    // Add your code above this line
  **Your browser information:**

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.2 Safari/605.1.15

Challenge: Work with Dynamic Data in D3

Link to the challenge:

you can run function in text() method.

.text(function(d) { return d; });

for more details check the docs
D3.js - Data-Driven Documents (

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