# Guess, then reveal

> Use a guess-then-reveal chart when the real trend will surprise people: they draw what they expect, then see the truth beside it.

- Data type: Values over time (`time`)
- Pro · not released yet: its code is not available; try it on its page, or use a free chart of the same data type (`time`)
- Example: **Solar went from a rounding error to almost a tenth of the world's electricity** (Solar's share of electricity generated worldwide, %, 2000 to 2025)
- How to read it: The line stops in 2012; draw where you think it went, then press Show me to see the real line beside yours.
- Interactive: guess
- Phone: Works on mobile (Reads on a 390px phone as drawn) · Video formats: 16:9 (best 16:9)

## Use it when
- readers hold a belief about a trend that the data overturns
- the story is a turning point after a known start
- you want people to commit before they look

## Avoid it when
- the trend is obvious or flat
- readers need the answer immediately (a callout is faster)
- the series is noisy, so a guess cannot be judged fairly

## Fields (data.json)
- `year` (year): the year
- `solar` (number, unit "%", format percent): solar's share of all electricity generated, %

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 across the shaded area to draw your guess
- Show me reveals the real line
- Try again clears your guess
- hover or tap a revealed point to read it
- Motion: The known part draws on; after the reveal the real line grows from 2012 to today and the gap between your line and the real one fills in.
- Sound: A chime on the reveal and 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": "guess-reveal",
  "title": "Solar went from a rounding error to almost a tenth of the world's electricity",
  "subtitle": "Solar's share of electricity generated worldwide, %, 2000 to 2025",
  "data": "/charts/guess-reveal.data.json"
}
```

## Source
Share of electricity production by source, Our World in Data (Ember; Energy Institute Statistical Review of World Energy) (CC BY 4.0), retrieved 2026-12-01: https://ourworldindata.org/grapher/share-elec-by-source

Inspired by: [You Draw It: How Family Income Predicts Children's College Chances](https://www.nytimes.com/interactive/2015/05/28/upshot/you-draw-it-how-family-income-affects-childrens-college-chances.html), The New York Times, The Upshot (linked, not copied).

Live: /charts/guess-reveal · Manifest: /charts/guess-reveal.json · Tags: you draw it, guess, reveal, prediction, interactive, solar, energy
