# One line in focus

> Use one line in focus to tell one series' story against the crowd: the hero in ink, every other series in grey.

- Data type: Values over time (`time`)
- Pro · not released yet: its code is not available; try it on its page, or use a free chart of the same data type (`time`)
- Example: **South Korea's fertility rate fell from six children per woman to 0.72** (Births per woman, 1950 to 2023, South Korea against thirteen other countries and the world)
- How to read it: The blue line is South Korea; grey lines are the others; the dashed line is the 2.1 that keeps a population steady.
- Phone: Not recommended for mobile (3 labels overlap on a phone) · Video formats: 16:9 (best 16:9)

## Use it when
- one series is the story and the rest are context
- many series would tangle if all were coloured
- readers may want to switch the focus

## Avoid it when
- every series matters equally (use small multiples)
- only two or three series (colour them all)
- the grey context would hide the point

## Fields (data.json)
- `years` (year): the shared time axis
- `series[].name` (category): the country or the world
- `series[].values` (number, unit "births per woman", format decimal): births per woman, one per year

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 a grey line to read it; tap it to put it in focus
- buttons switch the focus to a few telling countries
- Motion: The grey crowd fades in, then the focused line draws on over it; switching focus slides the ink to the new line.
- Sound: A pop on hover; a chime when the focus changes. 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": "highlight-line",
  "title": "South Korea's fertility rate fell from six children per woman to 0.72",
  "subtitle": "Births per woman, 1950 to 2023, South Korea against thirteen other countries and the world",
  "data": "/charts/highlight-line.data.json"
}
```

## Source
Fertility rate: children per woman, Our World in Data (UN World Population Prospects) (CC BY 4.0), retrieved 2026-12-01: https://ourworldindata.org/grapher/children-born-per-woman

Note: In 2023 only Macao and Hong Kong, both territories, were lower than South Korea in this dataset.

Live: /charts/highlight-line · Manifest: /charts/highlight-line.json · Tags: highlight, focus, one line, spaghetti, population, births, demography
