# Receipt

> Use a receipt to itemise a total line by line, the way a till does: every part listed with its amount, adding up to the bill.

- Data type: Shares of a total (`parts`)
- Pro · not released yet: its code is not available; try it on its page, or use a free chart of the same data type (`parts`)
- Example: **A third of the planet's greenhouse gas bill comes from electricity and heat** (World greenhouse gas emissions by sector, 2023, billion tonnes of CO₂ equivalent)
- How to read it: Each line is one sector with its emissions; the thin bars compare each line with the biggest, and the total is the year's bill.
- Phone: Adapts to mobile (Draws its own phone layout below 520px) · Video formats: 9:16 (best 9:16)

## Use it when
- a total that people pay or owe, split into named items
- exact amounts matter as much as the ranking
- 5 to 15 items, a playful explainer register

## Avoid it when
- shares across several wholes
- values that don't add to a total
- many tiny items (fold them into one line)

## Fields (data.json)
- `sector` (category): the line item
- `tonnes` (number, unit "tonnes", format count): emissions, tonnes of CO₂ equivalent
- `year` (year): the year measured

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 line to read its amount and share
- Motion: The receipt prints like a till: each line appears in turn with its bar, then the total counts up.
- 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": "receipt",
  "title": "A third of the planet's greenhouse gas bill comes from electricity and heat",
  "subtitle": "World greenhouse gas emissions by sector, 2023, billion tonnes of CO₂ equivalent",
  "data": "/charts/receipt.data.json"
}
```

## Source
Greenhouse gas emissions by sector, Our World in Data (Climate Watch) (CC BY 4.0), retrieved 2026-12-01: https://ourworldindata.org/grapher/ghg-emissions-by-sector

Note: CO₂ equivalent weights methane and nitrous oxide by their 100-year warming effect. The receipt's paper is decoration; only the amounts carry data.

Live: /charts/receipt · Manifest: /charts/receipt.json · Tags: receipt, itemised, bill, list, part to whole, climate, emissions, greenhouse gas, playful
