D3 - StreamGraph
✓ Published0🌍 Public
A streamgraph displays CO2 emissions for Afghanistan, Albania, Algeria, and Angola from 1970 to 1979, using stacked areas that flow across a time axis. Each colored band represents a country’s emissions, with a tooltip revealing the country name on hover and a legend mapping colors to names. Built with D3 v7, the visualization uses `d3.stack` to compute the stacked series, `d3.area` to generate the path geometry, and `d3.scaleLinear` for axes. Data is loaded from a CSV file via `d3.csv`, and the SVG rendering includes axis labels for Year and CO2 Emissions.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed