Activity-7.1_Ques2
✓ Published0🌍 Public
This example shows a global CO₂ emissions area chart over time, with emissions plotted against year and a steelblue filled region beneath the curve. It uses D3 v7 to load CSV data from a GitHub gist, parse numeric values, and construct an SVG area chart via `d3.area`, `d3.scaleLinear`, and `d3.axisBottom`/`d3.axisLeft`. The chart includes labeled axes for year and emissions, a bold title, and styled axes with hidden tick lines. Data is fetched using `d3.csv` and rendered entirely as SVG elements.
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