# Funnel

> Use a funnel to show how many survive each step of a process, and where most of them drop out.

- Data type: Movement between stages (`flow`)
- Free (MIT): install with `npx chartreuse add funnel`, or registry item `/r/funnel.json`
- Example: **Of 9,564 signals Kepler flagged, ten are Earth-sized planets in temperate orbits** (Kepler Objects of Interest by stage, NASA Exoplanet Archive cumulative table)
- How to read it: Each bar's width is how many signals reached that stage; the pipes between them show what was lost and why.
- Phone: Adapts to mobile (Draws its own phone layout below 520px) · Video formats: 16:9, 9:16 (best 9:16)

## Use it when
- every item passes through the same ordered stages
- the drop between stages is the story
- there are 3 to 7 stages

## Avoid it when
- items can skip or return to stages (use a Sankey or state transitions)
- stages are not nested subsets of each other
- you want to compare several funnels (use grouped bars)

## Fields (data.json)
- `stages[].stage` (category): the stage, in order
- `stages[].count` (number, unit "signals", format count): signals that reached it
- `stages[].detail` (text): what the stage means
- `stages[].lost` (text): why the others dropped out before it
- `planets[].name` (id): each planet that reached the last stage
- `planets[].radius` (number, unit "× Earth", format decimal): radius, Earth = 1
- `planets[].insolation` (number, unit "× Earth", format decimal): sunlight received, Earth = 1
- `planets[].periodDays` (number, unit "days", format decimal): length of its year, days

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 stage to read its count
- hover a planet to read its size, sunlight and year
- Play walks down the stages
- Motion: The stages pour in one under the other, each narrower than the last; the ten survivors pop out at the bottom.
- 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": "funnel",
  "title": "Of 9,564 signals Kepler flagged, ten are Earth-sized planets in temperate orbits",
  "subtitle": "Kepler Objects of Interest by stage, NASA Exoplanet Archive cumulative table",
  "data": "/charts/funnel.data.json"
}
```

## Source
Kepler Objects of Interest, cumulative table, NASA Exoplanet Archive (NASA Exoplanet Science Institute, Caltech/IPAC) (Public domain (NASA); acknowledgement requested), retrieved 2026-12-01: https://exoplanetarchive.ipac.caltech.edu/docs/data.html

Note: "Earth-sized" means under 1.5 Earth radii and "temperate" means 0.25 to 2 times Earth's sunlight: simple cut-offs, not a full habitable-zone model. Sizes and sunlight are Kepler's catalogue values.

Live: /charts/funnel · Manifest: /charts/funnel.json · Tags: drop-off, conversion, pipeline, stages, space, exoplanets, Kepler
