# Small-multiple lines

> Use small-multiple lines to compare the shape of many series, one small chart each on a shared scale.

- Data type: Values over time (`time`)
- Free (MIT): install with `npx chartreuse add small-multiple-lines`, or registry item `/r/small-multiple-lines.json`
- Example: **Internet use climbed everywhere, but some countries got there twenty years later** (Share of people using the internet, %, 1990 to 2023, twelve countries)
- How to read it: Each panel is one country in blue, over the other eleven in grey; the dashed line is half the population.
- Phone: Adapts to mobile (Draws its own phone layout below 520px) · Video formats: 16:9 (best 9:16)

## Use it when
- more than about 5 series would tangle on one chart
- the shapes and timing matter more than exact crossings
- all series share one unit

## Avoid it when
- readers must compare values at one year precisely (use a crosshair line)
- only two or three series
- series have very different scales

## Fields (data.json)
- `years` (year): the shared time axis
- `countries[].name` (category): the country
- `countries[].values` (number, unit "%", format percent): % of people using the internet, one per year (null where missing)

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
- move across any panel to move a marker in every panel at that year
- hover a panel to read that country's value and when it passed half
- Motion: Each country's line draws on in turn, from the most connected to the least.
- Sound: A soft pop on a panel. 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": "small-multiple-lines",
  "title": "Internet use climbed everywhere, but some countries got there twenty years later",
  "subtitle": "Share of people using the internet, %, 1990 to 2023, twelve countries",
  "data": "/charts/small-multiple-lines.data.json"
}
```

## Source
Individuals using the Internet (% of population), IT.NET.USER.ZS, World Bank, World Development Indicators (International Telecommunication Union) (CC BY 4.0), retrieved 2026-12-01: https://data.worldbank.org/indicator/IT.NET.USER.ZS

Live: /charts/small-multiple-lines · Manifest: /charts/small-multiple-lines.json · Tags: small multiples, trellis, facets, technology, internet, comparison
