# Spring bars

> Use spring bars for a bar chart with bounce: each bar is a spring pulled from a wall to its value, overshooting and settling as it arrives.

- Data type: Values per item (`compare`)
- Pro · not released yet: its code is not available; try it on its page, or use a free chart of the same data type (`compare`)
- Example: **Monitored wildlife populations shrank by 73% on average since 1970** (Living Planet Index, average change in population size since 1970, %, 2022)
- How to read it: Each spring is pulled from the 1970 wall to the average change in one region's or habitat's monitored populations; longer springs are steeper declines.
- Phone: Works on mobile (Reads on a 390px phone as drawn) · Video formats: 16:9 (best 16:9)

## Use it when
- one value per item, all on one side of zero
- changes or gaps from a fixed starting point
- a lively bar chart for 4 to 12 items

## Avoid it when
- exact, close comparisons matter more than feel
- values cross zero
- readers might take the coils for extra data

## Fields (data.json)
- `year` (year): the latest year of the index
- `regions[].region` (category): the item (4 to 12); the row named in hints.anchor is pinned on top; an optional regions[].group key (or hints.groups) splits the rows into headed sections
- `regions[].change` (number, unit "%", format percent): average change since 1970, %
- `regions[].low` (number, unit "%", format percent): lower end of the confidence interval, %
- `regions[].high` (number, unit "%", format percent): upper end of the confidence interval, %

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 row to read the change and its likely range
- Show uncertainty toggles the confidence bands
- Motion: Each spring stretches out from the wall, overshoots its value and bounces back to settle, one after another.
- Sound: No sound of its own: quiet while it draws and between steps; mute it from its card. (sound is off until the viewer turns it on)
- Physics settings: restitution (the Studio's Physics section, a look's `physics`, or `render --physics key=value`; docs/look-format.md)

## Example spec
```json
{
  "chart": "spring-bars",
  "title": "Monitored wildlife populations shrank by 73% on average since 1970",
  "subtitle": "Living Planet Index, average change in population size since 1970, %, 2022",
  "data": "/charts/spring-bars.data.json"
}
```

## Source
Living Planet Index, Our World in Data (WWF and Zoological Society of London, Living Planet Report 2024) (CC BY 4.0), retrieved 2026-12-01: https://ourworldindata.org/grapher/global-living-planet-index

Note: The index is the average relative change across monitored populations of mammals, birds, fish, reptiles and amphibians, not the share of animals lost; a few steep declines can pull the average down.

Live: /charts/spring-bars · Manifest: /charts/spring-bars.json · Tags: bars, springs, change, decline, wildlife, biodiversity, animals, nature
