JavaScript Visualizations/D3

From Federal Burro of Information
Revision as of 15:56, 4 December 2018 by David (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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>