Co2 H. Tashakori
✓ Published1🌍 Public
This stacked area chart visualizes regional CO₂ emissions from 1990 to 2020 using d3.csv-loaded data from a GitHub Gist. It employs d3.stack to compute layers, d3.area to generate SVG paths, and d3.scaleOrdinal with d3.schemeSet2 for region colors. Axes are rendered with d3.axisBottom and d3.axisLeft, while a custom legend maps regions to color swatches.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG (pinned at v6, since this runtime environment only supports UMD, and in v7 D3 dropped UMD support)
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed