Fork of CO2 Emissions Over Time
This stacked area chart visualizes global CO2 emissions from 1790 onward, segmented by fossil fuel types—Gas, Liquids, Solids, Cement Production, and Gas Flaring—measured in gigatons per year. The y-axis is labeled accordingly, with a time-based x-axis. Built with D3 v4, it uses `d3.stack()` and `d3.area()` to render SVG paths, with `d3.areaLabel` positioning white labels within each segment. The `d3.scaleOrdinal` and `d3.schemeDark2` assign colors, while axis ticks are formatted with `d3.timeFormat`. Data comes from a CSV file loaded via `d3.csv`.
AI-generated descriptionA stacked area chart of Global CO2 Emissions.
The segments "Solids", "Liquids", and "Gas" are the forms of fossil fuels being burned.
Uses d3-area-label to position labels.
Inspired by Scott Judson’s Block: Global Carbon Emissions Area Chart.