# Line with crosshair

> Use a line chart with a crosshair when readers need to read every series at the same moment, not just see the shapes.

- Data type: Values over time (`time`)
- Free (MIT): install with `npx chartreuse add line-crosshair`, or registry item `/r/line-crosshair.json`
- Example: **There are now more mobile phone subscriptions than people** (Mobile phone subscriptions per 100 people, 1990 to 2023)
- How to read it: Each line is one country or the world; move along the chart to read every line at that year.
- 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 6 series share one unit and one time axis
- readers will compare exact values at a given year
- the crossing points matter

## Avoid it when
- more than about 6 series (use small multiples or one line in focus)
- only the overall trend matters (a plain line is enough)
- the series are in different units

## Fields (data.json)
- `years` (year): the shared time axis
- `series[].name` (category): the country or region
- `series[].values` (number, unit "per 100 people", format decimal): subscriptions per 100 people, 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 or drag across the chart to move the crosshair and read every series
- hover a line to read its first and last values
- Motion: Lines draw on from 1990 one after another, then their names fade in at the right.
- Sound: A soft pop on a line. 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": "line-crosshair",
  "title": "There are now more mobile phone subscriptions than people",
  "subtitle": "Mobile phone subscriptions per 100 people, 1990 to 2023",
  "data": "/charts/line-crosshair.data.json"
}
```

## Source
Mobile phone subscriptions per 100 people, Our World in Data (International Telecommunication Union via World Bank) (CC BY 4.0), retrieved 2026-12-01: https://ourworldindata.org/grapher/mobile-cellular-subscriptions-per-100-people

Note: Subscriptions, not people: one person can hold several SIM cards, so values pass 100. The source has no world figure for 2000 to 2004; a dashed line bridges the gap.

Live: /charts/line-crosshair · Manifest: /charts/line-crosshair.json · Tags: line, crosshair, tooltip, multi-series, technology, phones
