Skip to main content
Public

Share visualization

Loading preview…

The keeling curve dataset with D3

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

The keeling curve dataset with D3

0
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

Comments

Sign in to join the discussion.

MIT Licensed