Work with Data in D3

Tell us what’s happening:

Your code so far

    const dataset = [12, 31, 22, 17, 25, 18, 29, 14, 90];
    // Add your code below this line"body")
  .text("New Title"); 
    // Add your code above this line

Your browser information:

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

Link to the challenge:

What you’ll pass to .data is the array of data that you want to visualize (e.g., the dataset array), not just a single string.

1 Like