# Area

> Use an area chart to show how one total grows or shrinks over time, when the amount under the line matters.

- Data type: Values over time (`time`)
- Free (MIT): install with `npx chartreuse add area`, or registry item `/r/area.json`
- Example: **The world's solar power capacity grew almost sixty-fold since 2010** (Installed solar photovoltaic capacity worldwide, gigawatts, 2000 to 2025)
- How to read it: The height of the filled area is the solar capacity installed worldwide in that year.
- Phone: Adapts to mobile (Draws its own phone layout below 520px) · Video formats: 16:9, 9:16 (best 16:9)

## Use it when
- one series measured as an amount (not a rate)
- the size and the acceleration both matter
- the axis can start at zero

## Avoid it when
- several series overlap (use lines, or a stacked area if they add up)
- values go below zero
- the baseline can't be zero

## Fields (data.json)
- `year` (year): the year
- `gw` (number, unit "GW", format count): cumulative installed solar capacity, gigawatts

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
- move along the area to read any year and its growth on the year before
- Motion: The area rises from the baseline while the headline number counts up.
- Sound: A pop pitched by the value as the reader moves. 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": "area",
  "title": "The world's solar power capacity grew almost sixty-fold since 2010",
  "subtitle": "Installed solar photovoltaic capacity worldwide, gigawatts, 2000 to 2025",
  "data": "/charts/area.data.json"
}
```

## Source
Installed solar capacity, Our World in Data (IRENA Renewable Capacity Statistics) (CC BY 4.0), retrieved 2026-12-01: https://ourworldindata.org/grapher/installed-solar-pv-capacity

Live: /charts/area · Manifest: /charts/area.json · Tags: area, growth, single series, energy, solar, climate
