Activity7_Areachart
✓ Published0🌍 Public
This area chart visualizes yearly CO2 emissions from 2010 to 2021 for North America, with data loaded from a remote text file. The code uses D3 v7 to group the data by region, apply a time scale for years, and generate filled SVG areas via `d3.area`. Two placeholder colors distinguish the single visible region, while axes, labels, and a legend are added using `d3.axisBottom` and `d3.axisLeft`. The visualization renders entirely as an SVG within a styled HTML container.
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