# Gravity sort

> Use a gravity sort to rank items by letting them race: each item falls at a speed set by its value, so they land in order and settle along a number line.

- Data type: Values per item (`compare`)
- Pro · not released yet: its code is not available; try it on its page, or use a free chart of the same data type (`compare`)
- Example: **A ball dropped on Jupiter lands first: it pulls 2.4 times harder than Earth** (Surface gravity of the planets, the Moon and Pluto, m/s²)
- How to read it: Each ball is dropped from the same height under its own world's gravity, then rests at its value on the number line; balls with nearly equal values stack.
- Phone: Not recommended for mobile (4 labels overlap on a phone) · Video formats: none passed; closest 16:9

## Use it when
- ranking 5 to 15 items where the order of arrival is the story
- the value is itself a speed, a rate or a force
- a short, memorable reveal in an explainer

## Avoid it when
- many items share nearly the same value
- values can be negative
- readers need to compare values precisely (use a dot plot)

## Fields (data.json)
- `body` (category): planet, moon or dwarf planet
- `gravity` (number, unit "m/s²", format decimal): surface gravity, m/s²

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 ball to read its gravity and how long a 10 m drop takes
- Play steps through the landing order
- Drop again releases them all
- Motion: All ten balls are released together and accelerate at their world's real gravity (scaled to the screen), so Jupiter lands in half a second and Pluto takes about three.
- Sound: A plink now and then as balls land, higher for stronger gravity; a chime when the last one lands. Quiet while it starts; mute it from its card. (sound is off until the viewer turns it on)
- Physics settings: gravity, size (the Studio's Physics section, a look's `physics`, or `render --physics key=value`; docs/look-format.md)

## Example spec
```json
{
  "chart": "gravity-sort",
  "title": "A ball dropped on Jupiter lands first: it pulls 2.4 times harder than Earth",
  "subtitle": "Surface gravity of the planets, the Moon and Pluto, m/s²",
  "data": "/charts/gravity-sort.data.json"
}
```

## Source
Planetary Fact Sheet (metric), NASA Space Science Data Coordinated Archive (Public domain (US government work)), retrieved 2026-12-01: https://nssdc.gsfc.nasa.gov/planetary/factsheet/

Note: Gravity at the giant planets is given at the level where pressure is one bar; they have no solid surface. The 10 m fall times are worked out from the gravity and ignore air.

Live: /charts/gravity-sort · Manifest: /charts/gravity-sort.json · Tags: sort, rank, physics, space, planets, gravity, dot plot
