# Pile-up

> Use a pile-up to make one group's dominance physical: blocks fall into a pile per group and settle, so one heap towering over the rest tells the story before any number is read.

- Data type: Shares of a total (`parts`)
- Pro · not released yet: its code is not available; try it on its page, or use a free chart of the same data type (`parts`)
- Example: **The United States launched more than four in five objects sent to space in 2025** (Objects launched into outer space by the launching country, 2025; one block is 20 objects)
- How to read it: Each block is 20 objects launched; each tray is one country, and the bars at top right are the world's yearly totals since 2015.
- Phone: Not recommended for mobile (On a phone marks are too small to see or tap (checked by eye)) · Video formats: 16:9 (best 16:9)

## Use it when
- one or two groups dwarf the rest
- counts of whole things (launches, goals, cars) in 3 to 6 groups
- a playful opener for an explainer

## Avoid it when
- the groups are close in size (use bars)
- values are not counts of things
- more than six groups

## Fields (data.json)
- `year` (year): the year shown
- `world` (number, unit "objects", format count): objects launched worldwide that year
- `groups[].name` (place): launching country, or everyone else
- `groups[].objects` (number, unit "objects", format count): objects launched
- `past[].year` (year): earlier years
- `past[].world` (number, unit "objects", format count): objects launched worldwide

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 block or a name to read the count and share
- hover a small bar for that year's world total
- Drop again replays the pile; Clean up squares every block away in its own tray
- Motion: A Matter.js simulation drops a block every few frames into each tray; small piles finish quickly while the US pile keeps growing, then everything settles where the resting frame shows it.
- Sound: A soft plink now and then as blocks land, a chime when the piles settle, a pop on hover. Quiet while it starts; mute it from its card. (sound is off until the viewer turns it on)
- Physics settings: gravity, restitution, friction, drag, size, count, seed (the Studio's Physics section, a look's `physics`, or `render --physics key=value`; docs/look-format.md)

## Example spec
```json
{
  "chart": "pile-up",
  "title": "The United States launched more than four in five objects sent to space in 2025",
  "subtitle": "Objects launched into outer space by the launching country, 2025; one block is 20 objects",
  "data": "/charts/pile-up.data.json"
}
```

## Source
Annual number of objects launched into outer space, Our World in Data (United Nations Office for Outer Space Affairs) (CC BY 4.0), retrieved 2026-12-01: https://ourworldindata.org/grapher/yearly-number-of-objects-launched-into-outer-space

Note: Blocks are rounded to the nearest 20 objects (at least one block per tray); the counts under the trays are exact.

Live: /charts/pile-up · Manifest: /charts/pile-up.json · Tags: physics, Matter.js, unit chart, pile, space, satellites, dominance
