# Strip plot

> Use a strip plot to show every value in a few groups as jittered dots, with each group's median marked.

- Data type: Many values of one measure (`spread`)
- Free (MIT): install with `npx chartreuse add strip-plot`, or registry item `/r/strip-plot.json`
- Example: **South America's typical country makes two-thirds of its electricity from renewables** (Share of electricity from hydro, wind, solar, bioenergy and other renewables, by country, 2024)
- How to read it: Each dot is a country; dots are spread up and down only so they don't hide each other, and the dark bar is the continent's median.
- Phone: Adapts to mobile (Draws its own phone layout below 520px) · Video formats: 16:9, 9:16 (best 9:16)

## Use it when
- 2 to 8 groups with 10 to 100 values each
- you want every item visible, not a summary
- a general audience (easier than a box plot)

## Avoid it when
- hundreds of values per group (use a violin or box plot)
- the vertical jitter could be read as data
- only the averages matter (use bars)
- more than 8 groups (the smallest fold into Other)

## Fields (data.json)
- `year` (year): the year shown
- `rows[].country` (place): the country
- `rows[].continent` (category): the group: any labels, one row each; 2 to 8 groups, the smallest fold into Other past 8
- `rows[].share` (number, unit "%", format percent): share of electricity from renewables, %

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 dot to read the country
- Motion: Dots slide in from zero to their share, then the median bars drop into place.
- Sound: A soft pop on hover, pitched by continent. 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": "strip-plot",
  "title": "South America's typical country makes two-thirds of its electricity from renewables",
  "subtitle": "Share of electricity from hydro, wind, solar, bioenergy and other renewables, by country, 2024",
  "data": "/charts/strip-plot.data.json"
}
```

## Source
Share of electricity production from renewables, Our World in Data (Ember; Energy Institute Statistical Review of World Energy) (CC BY 4.0), retrieved 2026-12-01: https://ourworldindata.org/grapher/share-electricity-renewables

Note: Countries are equal weight. North America's low median reflects many Caribbean islands that burn oil for power. Continents follow Our World in Data's grouping.

Live: /charts/strip-plot · Manifest: /charts/strip-plot.json · Tags: jitter, dots, groups, energy, renewables, electricity, median
