# Fan chart

> Use a fan chart to show a forecast whose uncertainty widens with time: a central line inside nested bands.

- Data type: Many values of one measure (`spread`)
- Pro · not released yet: its code is not available; try it on its page, or use a free chart of the same data type (`spread`)
- Example: **By 2100 the world will most likely hold between 9 and 11.4 billion people** (World population, billions: UN estimates 1950–2023 and the probabilistic projection to 2100)
- How to read it: The solid line is what happened; the dashed line is the UN's central projection, the darker band holds 80% of likely futures and the lighter one 95%.
- Phone: Adapts to mobile (Draws its own phone layout below 520px) · Video formats: 16:9 (best 16:9)

## Use it when
- a forecast or projection with ranges
- uncertainty grows with time and that is part of the message
- one series, perhaps with history before it

## Avoid it when
- several forecasts at once (the bands pile up)
- the range has no stated probability
- readers need one exact number (give the median and say so)

## Fields (data.json)
- `year` (year): the year
- `median` (number, unit "billion people", format decimal): the estimate, then the medium-variant projection, billions
- `lo80` (number, unit "billion people", format decimal): lower bound of the 80% prediction interval, billions (projections only)
- `hi80` (number, unit "billion people", format decimal): upper bound of the 80% prediction interval, billions
- `lo95` (number, unit "billion people", format decimal): lower bound of the 95% prediction interval, billions
- `hi95` (number, unit "billion people", format decimal): upper bound of the 95% prediction interval, billions

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
- move along the chart to read any year and its ranges
- Play steps through each decade to 2100
- Motion: The fan unfurls from 2023 towards 2100, the inner band first.
- Sound: No sound of its own: 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": "fan-chart",
  "title": "By 2100 the world will most likely hold between 9 and 11.4 billion people",
  "subtitle": "World population, billions: UN estimates 1950–2023 and the probabilistic projection to 2100",
  "data": "/charts/fan-chart.data.json"
}
```

## Source
World Population Prospects 2024: total population by sex (probabilistic projections), United Nations, Department of Economic and Social Affairs, Population Division (CC BY 3.0 IGO), retrieved 2026-12-01: https://population.un.org/wpp/downloads

Note: The central line is the UN medium variant; the bands are the UN's 80% and 95% prediction intervals. The median projection peaks at 10.3 billion in the 2080s.

Live: /charts/fan-chart · Manifest: /charts/fan-chart.json · Tags: forecast, projection, uncertainty, bands, population, prediction interval
