12345678910111213141516171819202122232425262728 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <title>Egghead D3 v4</title>
- <script src="node_modules/d3/build/d3.js"></script>
- <style>
- .chart {
- background: lightgray;
- border: 1px solid black;
- }
- rect {
- fill: steelblue;
- }
- </style>
- </head>
- <body>
- <div class="chart"></div>
- <button onclick="render('math')">Math</button>
- <button onclick="render('science')">Science</button>
- <button onclick="render('language')">Language</button>
- <script src="src/responsivefy.js"></script>
- <script src="src/app.js"></script>
- </body>
- </html>
|