JavaScript Visualizations/D3

From Federal Burro of Information
Jump to navigationJump to search

Some notes

source: https://learn.freecodecamp.org/data-visualization/data-visualization-with-d3

<body>
  <script>
    const dataset = [12, 31, 22, 17, 25, 18, 29, 14, 9];
    
    d3.select("body").selectAll("h2")
      .data(dataset)
      .enter()
      .append("h2")
      // Add your code below this line
      
      .text("New Title");
      
      // Add your code above this line
  </script>
</body>