index.html 640 B

12345678910111213141516171819202122232425262728
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Egghead D3 v4</title>
  6. <script src="node_modules/d3/build/d3.js"></script>
  7. <style>
  8. .chart {
  9. background: lightgray;
  10. border: 1px solid black;
  11. }
  12. rect {
  13. fill: steelblue;
  14. }
  15. </style>
  16. </head>
  17. <body>
  18. <div class="chart"></div>
  19. <button onclick="render('math')">Math</button>
  20. <button onclick="render('science')">Science</button>
  21. <button onclick="render('language')">Language</button>
  22. <script src="src/responsivefy.js"></script>
  23. <script src="src/app.js"></script>
  24. </body>
  25. </html>