# Particle flow

> Use a particle flow to show units moving between states, so readers see both the routes and how many take each one.

- 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: **Of every 100 units of sunlight reaching Earth, 29 bounce straight back to space** (Earth's energy budget, global average, percent of incoming sunlight)
- How to read it: Each dot is 1% of the sunlight arriving at the top of the atmosphere; it turns from sunlight to heat where it is absorbed, then rises back to space.
- Phone: Adapts to mobile (Draws its own phone layout below 520px) · Video formats: 16:9 (best 16:9)

## Use it when
- things move through a small set of states and you want the motion felt
- counts can be shown as units (dots) of equal size
- there are 3 to 8 routes

## Avoid it when
- readers need exact values at a glance (use a Sankey or bars)
- the page must work without motion (the still frame is only a snapshot)
- there are many states or routes

## Fields (data.json)
- `incomingWm2` (number, unit "W/m²", format decimal): average sunlight at the top of the atmosphere, watts per square metre
- `routes[].label` (category): the route a share of sunlight takes
- `routes[].share` (number, unit "%", format percent): percent of incoming sunlight taking it; one dot each
- `routes[].path` (category): the states it passes through
- `routes[].absorbedIn` (category): where sunlight turns to heat, or null if reflected

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 dot, a route or a legend entry to light that route
- the button pauses or restarts the flow
- Motion: The dots pop in, then drift slowly and steadily along their routes, changing colour where sunlight becomes heat. Reduced motion shows one still moment.
- 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": "particle-flow",
  "title": "Of every 100 units of sunlight reaching Earth, 29 bounce straight back to space",
  "subtitle": "Earth's energy budget, global average, percent of incoming sunlight",
  "data": "/charts/particle-flow.data.json"
}
```

## Source
Climate and Earth's Energy Budget, NASA Earth Observatory (Public domain (NASA)), retrieved 2026-12-01: https://earthobservatory.nasa.gov/features/EnergyBalance

Note: NASA gives the surface heat caught by greenhouse gases as "a net 5-6 percent"; 6 is used so the atmosphere's 59% of outgoing heat balances (23 + 25 + 5 + 6). Particle positions and timing are illustrative; only the counts carry data.

Live: /charts/particle-flow · Manifest: /charts/particle-flow.json · Tags: particles, states, energy, climate, Earth, sunlight, physics, flow
