JavaScript Visualizations/D3

From Federal Burro of Information
Revision as of 15:55, 4 December 2018 by David (talk | contribs) (Created page with "Some notes <pre> <body> <script> const dataset = [12, 31, 22, 17, 25, 18, 29, 14, 9]; d3.select("body").selectAll("h2") .data(dataset) .enter()...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Some notes

<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>