Activity-7 Question-2
✓ Published0🌍 Public
This example visualizes nuclear energy usage from 2010 to 2020 with an area chart rendered in SVG. The page loads D3 v5 via UNPKG and uses the library’s scale and axis functions to map time-series data, while a filled path generated with d3.area creates the shaded region. The chart is centered on a 930×450 SVG canvas with a fixed heading, and styling is handled through an external CSS file.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed