# Donut with one highlight

> Use a donut with one highlight when a whole has at most five parts and one of them is the story: pull it out, grey the rest.

- Data type: Shares of a total (`parts`)
- Free (MIT): install with `npx chartreuse add donut`, or registry item `/r/donut.json`
- Example: **Chicken went from an eighth of the world's meat in 1961 to the biggest share today** (World meat production by animal, tonnes, 1961 and 2024)
- How to read it: The ring is all meat produced in a year; the pulled-out slice is poultry, and the buttons swap 1961 and 2024.
- Phone: Adapts to mobile (Draws its own phone layout below 520px) · Video formats: 16:9, 9:16 (best 9:16)

## Use it when
- two to five parts of one whole
- one part is the point and the rest are context
- a then-and-now swap tells the change

## Avoid it when
- more than five parts (use bars)
- parts are close in size and must be ranked (use bars)
- you compare several wholes (use stacked bars)

## Fields (data.json)
- `animal` (category): the kind of meat
- `then` (number, unit "tonnes", format count): production in 1961, tonnes
- `now` (number, unit "tonnes", format count): production in 2024, tonnes

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 a slice to read its tonnes, share and growth
- the year buttons swap the ring between 1961 and 2024
- Play steps between the two years
- Motion: The ring sweeps round, then the poultry slice slides out; switching years morphs the slices in place.
- Sound: A chime on the year buttons. 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": "donut",
  "title": "Chicken went from an eighth of the world's meat in 1961 to the biggest share today",
  "subtitle": "World meat production by animal, tonnes, 1961 and 2024",
  "data": "/charts/donut.data.json"
}
```

## Source
Global meat production by livestock type, Our World in Data (UN Food and Agriculture Organization) (CC BY 4.0), retrieved 2026-12-01: https://ourworldindata.org/grapher/global-meat-production-by-livestock-type

Note: Other is game, horse and camel meat.

Live: /charts/donut · Manifest: /charts/donut.json · Tags: donut, pie, highlight, part to whole, food, meat, chicken, then and now
