# Unit cubes

> Use unit cubes to make a large count tangible: stack one small cube per fixed number of things, so the total becomes a pile you can see.

- Data type: One very big or small number (`scale`)
- Pro · not released yet: its code is not available; try it on its page, or use a free chart of the same data type (`scale`)
- Example: **Three in four of the 6,473 known exoplanets were found by the dip in starlight as they crossed their star** (Confirmed exoplanets by discovery method; one cube = 10 planets)
- How to read it: Each cube is ten planets, stacked 25 to a layer; the tallest tower, transits, holds three quarters of all known planets.
- Phone: Adapts to mobile (Draws its own phone layout below 520px) · Video formats: 16:9 (best 16:9)

## Use it when
- a large count (hundreds to tens of thousands) split into up to six groups
- the size of the pile matters more than exact values
- an explainer that builds a total up piece by piece

## Avoid it when
- exact values must be read (use bars with labels)
- the groups are nearly equal
- the unit would be fractional for most groups

## Fields (data.json)
- `method` (category): how the planets were discovered (small methods folded into Other)
- `planets` (number, unit "planets", format count): confirmed planets found that way

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 tower to read its count and share
- Motion: Cubes drop onto the floor layer by layer, bouncing slightly, while the total counts up.
- 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": "unit-cubes",
  "title": "Three in four of the 6,473 known exoplanets were found by the dip in starlight as they crossed their star",
  "subtitle": "Confirmed exoplanets by discovery method; one cube = 10 planets",
  "data": "/charts/unit-cubes.data.json"
}
```

## Source
Planetary Systems Composite Parameters (count by discovery method), NASA Exoplanet Archive (NASA / Caltech-IPAC) (Public (NASA Exoplanet Archive data are free to use with acknowledgement)), retrieved 2026-12-01: https://exoplanetarchive.ipac.caltech.edu/

Note: Each tower rounds its count to the nearest ten planets. Other methods: transit timing, eclipse timing, pulsar timing, astrometry, brightness modulation and disk kinematics.

Live: /charts/unit-cubes · Manifest: /charts/unit-cubes.json · Tags: unit chart, isotype, cubes, counting, big numbers, exoplanets, space, astronomy
