# 100% stacked bar

> Use a 100% stacked bar to split one total into a few shares, read left to right like a ruler.

- Data type: Shares of a total (`parts`)
- Free (MIT): install with `npx chartreuse add stacked-100`, or registry item `/r/stacked-100.json`
- Example: **Less than a tenth of the world's plastic waste is recycled** (Global plastic waste by what happened to it, 2019, share of tonnes)
- How to read it: The bar is all plastic waste thrown away in 2019; each part is one fate, its width its share.
- Phone: Not recommended for mobile (On a phone the chart isn't the main thing on screen (checked by eye)) · Video formats: 16:9 (best 16:9)

## Use it when
- one total splits into 2 to 6 parts
- the parts are read as shares of the whole
- you want a compact strip that fits a sentence

## Avoid it when
- you compare shares across many groups (use stacked bars)
- more than six parts
- readers need the absolute amounts more than the shares

## Fields (data.json)
- `fate` (category): what happened to the plastic
- `tonnes` (number, unit "tonnes", format count): plastic waste, tonnes
- `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 part to read its tonnes and share
- Motion: The parts fill the bar from left to right one after another, so the small recycled sliver arrives last.
- Sound: A soft pop on hover, pitched by part. 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": "stacked-100",
  "title": "Less than a tenth of the world's plastic waste is recycled",
  "subtitle": "Global plastic waste by what happened to it, 2019, share of tonnes",
  "data": "/charts/stacked-100.data.json"
}
```

## Source
Global plastic waste by fate, Our World in Data (OECD Global Plastics Outlook) (CC BY 4.0), retrieved 2026-12-01: https://ourworldindata.org/grapher/global-plastic-fate

Note: Mismanaged includes waste dumped, burned in the open or leaked into the environment.

Live: /charts/stacked-100 · Manifest: /charts/stacked-100.json · Tags: part to whole, share, percentage, plastic, waste, recycling, environment
