Skip to main content
100%

The keeling curve dataset with D3

✓ Published0🌍 Public
BBismark Kofi Owusu Sarfo
Last edited Sep 16, 2025
Created on Sep 16, 2025

This example displays monthly atmospheric CO2 concentrations from the Keeling Curve dataset as a line chart, with measurements in parts per million shown over time. The code loads CSV data using `d3.csv`, filters missing values, and renders the chart as SVG. It uses `d3.scaleTime` and `d3.scaleLinear` to map dates and CO2 values, `d3.line` to create the path, and `d3.axisBottom` and `d3.axisLeft` to draw axes. A loading state is shown via `d3-rosetta` state management before the data arrives.

AI-generated description
MIT Licensed

Similar vizzes