# Explorable

> Use an explorable when the reader should own one input: drag a number in a sentence and the chart recomputes from real data.

- 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: **At airliner speed, Neptune is more than five centuries away** (Travel time from Earth's orbit to each planet's orbit at a speed you choose, using NASA's mean distances from the Sun)
- How to read it: Drag the underlined speed left or right (or use the presets); every bar is the time to cover that gap at that speed.
- Interactive: slider
- Phone: Adapts to mobile (Draws its own phone layout below 520px) · Video formats: 16:9 (best 16:9)

## Use it when
- one assumption drives the result and readers want to test it
- the data is fixed but the question is 'what if'
- you want people to build intuition by playing

## Avoid it when
- the input has no sensible range
- the model is too simple and the result would mislead
- readers need a single answer, not a tool

## Fields (data.json)
- `name` (category): the planet, or the Moon
- `fromSun` (number, unit "million km", format decimal): mean distance from the Sun, million km (for the Moon: from Earth)

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
- drag the underlined speed in the sentence
- press a preset (walk, car, airliner, light)
- hover or tap a bar to read the distance and time
- Motion: Bars stretch and shrink live as you drag; a preset glides the speed to its value.
- Sound: A chime on presets. 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": "explorable",
  "title": "At airliner speed, Neptune is more than five centuries away",
  "subtitle": "Travel time from Earth's orbit to each planet's orbit at a speed you choose, using NASA's mean distances from the Sun",
  "data": "/charts/explorable.data.json"
}
```

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

Note: Gaps are the difference between mean orbital distances (orbits taken as circles, planets lined up), so they are the shortest possible straight-line trips; real missions curve and take longer.

Inspired by: [Explorable Explanations](https://worrydream.com/ExplorableExplanations/), Bret Victor (linked, not copied).

Live: /charts/explorable · Manifest: /charts/explorable.json · Tags: explorable, what if, reactive document, bret victor, space, planets, distance, speed
