# Counter ticker

> Use a counter ticker to turn a yearly total into a rate people can feel, counting up live at its real speed per second.

- Data type: One very big or small number (`scale`)
- Pro · not released yet: its code is not available; try it on its page, or use a free chart of the same data type (`scale`)
- Example: **About four babies are born every second, and two people die** (World births and deaths, 2023, counted at their average rate per second since you opened this page)
- How to read it: The counters start when the chart appears and tick at 2023's average rate; each dot is one person.
- Phone: Adapts to mobile (Draws its own phone layout below 520px) · Video formats: 16:9, 9:16 (best 9:16)

## Use it when
- a yearly or daily total is too big to feel
- the rate itself is the story (per second, per minute)
- a page or a talk needs a live, ambient element

## Avoid it when
- the rate is uneven and the average would mislead
- readers need the totals, not the speed
- the page is a still image or printed

## Fields (data.json)
- `year` (year): optional: the year the rates come from
- `births` (number, unit "people", format count): what comes in over the year (babies born in the world in the example); the first counter, named hints.in
- `deaths` (number, unit "people", format count): what goes out over the year (deaths in the world in the example); the second counter, named hints.out, and the third is in minus out, named hints.net
- `history` (number, unit "people", format count): optional: the same two totals in earlier years (rows of year and the two keys), for the small chart (hints.history titles it, hints.names labels its lines)

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
- watch the counters
- Restart sets them back to zero
- hover or tap the small chart's points to read a year
- Motion: A dot pops in for every birth and every death at the real average rate; the small chart draws on once.
- Sound: Silent while the counters run (Pause stops them); a soft pop on hover; mute it from its card. (sound is off until the viewer turns it on)

## Example spec
```json
{
  "chart": "counter-ticker",
  "title": "About four babies are born every second, and two people die",
  "subtitle": "World births and deaths, 2023, counted at their average rate per second since you opened this page",
  "data": "/charts/counter-ticker.data.json"
}
```

## Source
Number of births and deaths per year, Our World in Data (UN World Population Prospects 2024) (CC BY 4.0), retrieved 2026-12-01: https://ourworldindata.org/grapher/number-of-births-per-year

Note: The counter spreads 2023's totals evenly over the year's 31,536,000 seconds; real births and deaths arrive unevenly.

Live: /charts/counter-ticker · Manifest: /charts/counter-ticker.json · Tags: live counter, per second, rate, ticker, population, births, deaths
