# Contour lines

> Use contour lines (stacked ridgelines) to show the same yearly shape repeated many times, like a record sleeve, so both the cycle and its drift show at once.

- Data type: Values over time (`time`)
- Pro · not released yet: its code is not available; try it on its page, or use a free chart of the same data type (`time`)
- Example: **Each year Earth breathes CO₂ in and out, and each breath starts higher** (Monthly mean CO₂ at Mauna Loa, Hawaii, parts per million, 1959–2025; one line per year)
- How to read it: Each line is one year of monthly CO₂, placed at its average height (the wiggle drawn 3× taller); the wiggle is plants drawing CO₂ down each northern summer, and the widening gaps show the rise speeding up.
- Phone: Not recommended for mobile (1 label overlap on a phone) · Video formats: none passed; closest 16:9

## Use it when
- one repeating cycle (a day, a year) measured over many periods
- both the shape of the cycle and its long drift matter
- an arresting cover image that still carries true values

## Avoid it when
- you have only a few periods (use small multiples)
- readers need exact values month by month
- periods overlap so much the lines become a solid mass

## Fields (data.json)
- `year` (year): calendar year (complete years only)
- `ppm` (number, unit "ppm", format decimal): one value per period of the cycle, in order, ppm (twelve monthly means, January to December, in the example; any count works, named by hints.periods, else month initials for twelve, else 1 to N)

Units are the example's: with your own data, set each number field's `unit` and `format` (percent, count, decimal, currency, compact) in the meta you pass to mount, or `chartreuse render --unit field=text --format field=count`. Scales and labels follow your data.

## Interactions, motion, sound
- hover or tap a line to read the year's average, its seasonal swing and its rise on the year before
- Motion: The ridges rise into place one year at a time from 1959, like the record building up.
- Sound: A pop on hover. Quiet while it draws and between steps; mute it from its card. (sound is off until the viewer turns it on)

## Example spec
```json
{
  "chart": "contour-lines",
  "title": "Each year Earth breathes CO₂ in and out, and each breath starts higher",
  "subtitle": "Monthly mean CO₂ at Mauna Loa, Hawaii, parts per million, 1959–2025; one line per year",
  "data": "/charts/contour-lines.data.json"
}
```

## Source
Mauna Loa CO₂ monthly mean data, NOAA Global Monitoring Laboratory (Scripps Institution of Oceanography before 1974) (Public domain (US government work)), retrieved 2026-12-01: https://gml.noaa.gov/ccgg/trends/data.html

Note: Each line sits at its year's average CO₂ on the ppm scale; the seasonal wiggle around it is drawn three times taller so the ridges read, and the flat ends are drawn only to make the ridge. Hover gives the true values. A few early months were interpolated by NOAA.

Inspired by: [Unknown Pleasures cover (after the pulsar CP 1919 plots)](https://en.wikipedia.org/wiki/Unknown_Pleasures#Artwork_and_packaging), Peter Saville; Harold D. Craft Jr. (linked, not copied).

Live: /charts/contour-lines · Manifest: /charts/contour-lines.json · Tags: ridgeline, joy plot, data art, CO2, climate, seasonal cycle, Keeling curve
