# Plumbing

> Use a plumbing diagram to show one flow that loses volume along the way, with each leak drawn where and how the value escapes.

- Data type: Movement between stages (`flow`)
- Pro · not released yet: its code is not available; try it on its page, or use a free chart of the same data type (`flow`)
- Example: **Only 9% of the world's plastic waste comes out the other end recycled** (Plastic waste by fate, million tonnes, 2019)
- How to read it: All plastic waste enters the pipe on the left; it leaks out, drains to landfill and goes up the chimney, and what is left at the right was recycled.
- Phone: Adapts to mobile (Draws its own phone layout below 520px) · Video formats: 16:9 (best 16:9)

## Use it when
- one total loses parts in a sequence of steps
- the leaks are the story, not the destinations
- there are 2 to 5 places where value escapes

## Avoid it when
- flows split and rejoin (use a Sankey)
- the order of the losses means nothing (use stacked bars)
- readers need exact comparisons across many groups
- more than five ways out (the middle ones fold into Other)

## Fields (data.json)
- `year` (year): the year of the figures
- `regions[].region` (place): the row's name (the world or an OECD region); the first row is drawn
- `regions[].mismanaged` (number, unit "million tonnes", format decimal): the ways out, one number key each, in order along the pipe: the first leaks, then a drain, a chimney and a spout; the last comes out of the end. 2 to 5 (past five the middle ones fold into the spout as Other), any names. Here: littered or mismanaged, million tonnes
- `regions[].landfilled` (number, unit "million tonnes", format decimal): sent to landfill (the drain), million tonnes
- `regions[].incinerated` (number, unit "million tonnes", format decimal): incinerated (the chimney), million tonnes
- `regions[].recycled` (number, unit "million tonnes", format decimal): recycled (out of the end), million 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 pipe, a drip, the smoke or the spout to read its amount and share
- Motion: The flow fills the pipe, the drain and chimney extend, and the puddle spreads; then the leak drips and the smoke rises slowly. The pipe reshapes for each region.
- 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": "plumbing",
  "title": "Only 9% of the world's plastic waste comes out the other end recycled",
  "subtitle": "Plastic waste by fate, million tonnes, 2019",
  "data": "/charts/plumbing.data.json"
}
```

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

Note: Widths show shares of each region's own total, so regions of different size fill the same pipe; the total is printed at the inlet. "Leaked" is OECD's littered and mismanaged waste, including open burning and dumping.

Live: /charts/plumbing · Manifest: /charts/plumbing.json · Tags: losses, leaks, waste, plastic, recycling, environment, flow
