# Headline card

> Use a headline card when one number and one claim make the point: an eyebrow, a headline with one underlined word, a stat badge and the trend behind it.

- Data type: Values per item (`compare`)
- Free (MIT): install with `npx chartreuse add headline-card`, or registry item `/r/headline-card.json`
- Example: **Six billion people now use the internet, almost six times as many as in 2005** (People who used the internet in the last three months, world, 2005 to 2025)
- How to read it: The badge is the latest year's total; the line behind it is every year since 2005, with a dot every five years.
- Phone: Adapts to mobile (Draws its own phone layout below 520px) · Video formats: 16:9 (best 16:9)

## Use it when
- a cover image for an article, a post or a slide
- one headline number with its trend for context
- readers glance for a second and must get the claim

## Avoid it when
- several numbers matter equally (use bars or a ranked table)
- the trend has turns that need explaining (use an annotated line)
- the headline would claim more than the data shows

## Fields (data.json)
- `year` (year): the year
- `users` (number, unit "people", format count): people who used the internet in the last three months, world

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 along the line to set the badge to that year
- Motion: The headline's key word is underlined by hand, the line draws itself with its dots popping in, then the badge pops in with a small spring.
- Sound: A pop on hover. 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": "headline-card",
  "title": "Six billion people now use the internet, almost six times as many as in 2005",
  "subtitle": "People who used the internet in the last three months, world, 2005 to 2025",
  "data": "/charts/headline-card.data.json"
}
```

## Source
Number of people using the Internet, Our World in Data (International Telecommunication Union, via the World Bank's World Development Indicators) (CC BY 4.0), retrieved 2026-12-02: https://ourworldindata.org/grapher/number-of-internet-users

Note: An internet user is anyone who used the internet from any device in the last three months. The 2025 world figure is the World Bank's estimate.

Live: /charts/headline-card · Manifest: /charts/headline-card.json · Tags: cover, headline, stat badge, annotation, underline, social card, internet
