# Ridgeline

> Use a ridgeline to show how a distribution shifts across many ordered groups: stacked densities that overlap like mountain ridges.

- Data type: Many values of one measure (`spread`)
- Pro · not released yet: its code is not available; try it on its page, or use a free chart of the same data type (`spread`)
- Example: **Every month since 2020 was warmer than any month before 1980** (Global surface temperature of each month against the 1951–1980 average, °C, grouped by decade, 1880 to October 2026)
- How to read it: Each ridge is one decade's 120 months; ridges move right as months get warmer, and the 2020s sit wholly beyond the dashed line.
- Phone: Adapts to mobile (Draws its own phone layout below 520px) · Video formats: 16:9 (best 16:9)

## Use it when
- one measure across 6 to 30 ordered groups (decades, months, ages)
- the shift of the whole shape is the story
- exact values matter less than the drift

## Avoid it when
- groups are unordered categories (use a violin)
- fewer than about 4 groups (use overlaid densities)
- readers need to read exact values
- more than about 30 groups (the chart grows tall)

## Fields (data.json)
- `year` (year): the year; grouped into hints.bin-wide bins (decades by default) unless hints.groupBy names another ordered field
- `month` (number, unit "month", format count): the month, 1 to 12 (a group of its own with hints.groupBy = month)
- `anomaly` (number, unit "°C", format decimal): difference from the 1951–1980 average for that month, °C

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 ridge for the group's average and range
- Motion: Ridges rise out of their baselines one decade after another, oldest first.
- Sound: A soft pop on hover, pitched by decade. 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": "ridgeline",
  "title": "Every month since 2020 was warmer than any month before 1980",
  "subtitle": "Global surface temperature of each month against the 1951–1980 average, °C, grouped by decade, 1880 to October 2026",
  "data": "/charts/ridgeline.data.json"
}
```

## Source
GISS Surface Temperature Analysis (GISTEMP v4), global land-ocean monthly means, NASA Goddard Institute for Space Studies (Public domain (U.S. Government)), retrieved 2026-12-01: https://data.giss.nasa.gov/gistemp/

Note: The 2020s ridge holds the 82 months from January 2020 to October 2026.

Live: /charts/ridgeline · Manifest: /charts/ridgeline.json · Tags: distribution, density, climate, temperature, warming, decades, joyplot
