Skip to main content
100%

Fork of Streamgraph

✓ Published0🌍 Public
Ping-Yu Yang
Last edited Nov 3, 2023
Created on Nov 3, 2023
Forked from Streamgraph

This fork of a streamgraph visualizes global CO2 emissions over time as a stacked area chart. Segments representing fossil fuel types—Solids, Liquids, Gas, plus Cement Production and Gas Flaring—are stacked and colored via a D3 ordinal scale. Hovering highlights a single area. The chart uses the `d3.stack`, `d3.area`, and `d3.curveBasis` APIs, with labels positioned by the `d3-area-label` library. Data comes from a remote CSV file, parsed into gigatons, and rendered as SVG using D3 v4.

AI-generated description

A 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.

MIT Licensed

Similar vizzes