# Zoomable pack

> Use a zoomable circle pack to show a two- or three-level hierarchy of sizes, with click to zoom so the small members stay readable.

- Data type: Groups within groups (`hierarchy`)
- Pro · not released yet: its code is not available; try it on its page, or use a free chart of the same data type (`hierarchy`)
- Example: **China emits more CO2 than Europe and the Americas combined** (CO2 emissions from fossil fuels and industry by country, grouped by continent, 2023; circle area is emissions in million tonnes)
- How to read it: Each big circle is a continent and the circles inside are its countries, sized by emissions; click a continent to zoom in, click outside to zoom out.
- 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 16:9)

## Use it when
- a hierarchy of sizes with many small members
- readers explore groups one at a time
- the biggest members matter most and the rest give texture

## Avoid it when
- readers must compare sizes exactly (use a treemap or bars)
- the hierarchy is deep (more than three levels)
- a static image is needed (zooming is the point)

## Fields (data.json)
- `name` (category): continent or country
- `value` (number, unit "million tonnes", format decimal): a country's CO2 emissions, million tonnes
- `children` (id): a continent's countries

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
- click a continent to zoom in; click outside to zoom out
- hover or tap any circle to read its emissions and share
- Motion: Continents open first, then their countries pop in; zooming flies smoothly between views.
- Sound: A whoosh on every zoom; a pop on hover pitched by continent. 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": "zoomable-pack",
  "title": "China emits more CO2 than Europe and the Americas combined",
  "subtitle": "CO2 emissions from fossil fuels and industry by country, grouped by continent, 2023; circle area is emissions in million tonnes",
  "data": "/charts/zoomable-pack.data.json"
}
```

## Source
Annual CO2 emissions; continents according to Our World in Data, Our World in Data (Global Carbon Budget 2026) (CC BY 4.0), retrieved 2026-12-01: https://ourworldindata.org/grapher/annual-co2-emissions-per-country

Note: Territorial emissions; international shipping and aviation are not assigned to any country. China 12,303 Mt against 12,110 Mt for Europe, North America and South America together. Russia is counted in Europe.

Live: /charts/zoomable-pack · Manifest: /charts/zoomable-pack.json · Tags: circle packing, zoom, hierarchy, part to whole, climate, emissions, co2
