# Sunburst

> Use a sunburst to show nested shares as rings: the inner ring is the groups, the outer ring their members; click to zoom into one group.

- Data type: Groups within groups (`hierarchy`)
- Free (MIT): install with `npx chartreuse add sunburst`, or registry item `/r/sunburst.json`
- Example: **Five countries hold more than half of the world's forests** (Forest area by continent and country, 2025, square kilometres)
- How to read it: The inner ring splits the world's forest by continent and the outer ring by country, each angle its share; tap a continent to zoom in.
- Interactive: zoom
- Phone: Not recommended for mobile (On a phone labels are hard to read or overlap (checked by eye)) · Video formats: 16:9 (best 9:16)

## Use it when
- two or three levels of a hierarchy of shares
- the top level is the story and the next level is detail on demand
- a compact, round overview that zooms

## Avoid it when
- precise comparison (angles and arcs are hard to compare; use an icicle or bars)
- deep hierarchies (outer rings become slivers)
- values can be negative

## Fields (data.json)
- `continent` (category): the inner ring
- `country` (place): the outer ring, or a continent's smaller forests folded together
- `km2` (number, unit "km²", format count): forest area, square kilometres
- `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 an arc to read its forest area and shares
- tap a continent to zoom; tap the centre to zoom out
- Motion: The rings sweep open clockwise, continents first; zooming spreads the chosen continent around the full circle.
- Sound: A whoosh on each zoom; 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": "sunburst",
  "title": "Five countries hold more than half of the world's forests",
  "subtitle": "Forest area by continent and country, 2025, square kilometres",
  "data": "/charts/sunburst.data.json"
}
```

## Source
Forest area (sq. km), AG.LND.FRST.K2; continents from Our World in Data, World Bank World Development Indicators (FAO) (CC BY 4.0), retrieved 2026-12-01: https://data.worldbank.org/indicator/AG.LND.FRST.K2

Note: Russia is counted in Europe, as Our World in Data's continents do. Each continent shows its eight biggest forests; the rest are folded together.

Live: /charts/sunburst · Manifest: /charts/sunburst.json · Tags: sunburst, radial, hierarchy, zoom, forests, trees, nature, climate, land
