# Nested circles

> Use nested circles to compare sizes that differ hugely: draw each as a circle standing on the same floor, small inside big, so the eye reads the steps down.

- Data type: One very big or small number (`scale`)
- Free (MIT): install with `npx chartreuse add nested-circles`, or registry item `/r/nested-circles.json`
- Example: **Gathered into a ball, all of Earth's water is 1,383 km wide, and all its rivers just 16 km** (Volume of water in each of Earth's stores, km³, drawn as balls of water)
- How to read it: Each circle is a store of water gathered into one ball, all standing on the same floor; the smallest three are magnified ten times on the right.
- Phone: Adapts to mobile (Draws its own phone layout below 520px) · Video formats: 16:9 (best 16:9)

## Use it when
- 3 to 8 sizes that span a few orders of magnitude
- each smaller thing is part of, or compared with, the bigger one
- a single striking 'all of it vs this bit' picture

## Avoid it when
- the sizes are close (use bars)
- readers must read exact values from the picture
- the parts do not relate to the whole

## Fields (data.json)
- `level` (category): the store of water
- `km3` (number, unit "km³", format count): volume, cubic kilometres; sets the ball's size
- `note` (text): how a total was made, where it is a sum

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 circle to read its volume and ball width
- Motion: The balls grow up from the floor one after another, biggest first, then the magnifier focuses on the three smallest.
- Sound: A soft 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": "nested-circles",
  "title": "Gathered into a ball, all of Earth's water is 1,383 km wide, and all its rivers just 16 km",
  "subtitle": "Volume of water in each of Earth's stores, km³, drawn as balls of water",
  "data": "/charts/nested-circles.data.json"
}
```

## Source
Where is Earth's water?, USGS Water Science School (after Shiklomanov, in Gleick 1993) (US Government work, public domain), retrieved 2026-12-01: https://www.usgs.gov/water-science-school/science/where-earths-water

Note: Circles are drawn as balls: diameter grows with the cube root of volume, as in the USGS's own picture. The two totals are sums of the USGS table's stores.

Inspired by: [How much water is there on Earth?](https://www.usgs.gov/water-science-school/science/how-much-water-there-earth), USGS Water Science School (linked, not copied).

Live: /charts/nested-circles · Manifest: /charts/nested-circles.json · Tags: nested circles, proportional, size, water, earth, climate, nature, scale
