# Balance scale

> Use a balance scale to compare two totals that add up to one whole: the beam tips towards the heavier side, and stepping through years shows when it tips the other way.

- 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: **Fossil fuels still outweigh clean sources in the world's electricity** (Share of electricity from fossil fuels and from low-carbon sources (renewables and nuclear), %, 1990–2025)
- How to read it: Each pan holds one side's share of the electricity made that year; the beam tips towards the heavier side, and the lines below trace both shares over time.
- Phone: Adapts to mobile (Draws its own phone layout below 520px) · Video formats: 16:9 (best 16:9)

## Use it when
- exactly two sides that make up one whole
- the moment one side overtakes the other is the story
- comparing that moment across a few places

## Avoid it when
- more than two parts (use a stacked bar)
- the two values are not comparable or don't share a unit
- small gaps matter (the tilt is approximate; read the numbers)

## Fields (data.json)
- `place` (place): the place (a country, the EU or the world); a trailing "(…)" is left off its button
- `years[].year` (year): year
- `years[].fossil` (number, unit "%", format percent): the left pan, any key name: share of electricity from coal, gas and oil, % (labelled hints.names, notes in hints.notes, order in hints.sides)
- `years[].lowCarbon` (number, unit "%", format percent): the right pan, any key name: share of electricity from renewables and nuclear, %; the verdict says when it outweighs the left

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
- choose a place with the buttons
- tap a year on the lines to weigh it
- Play steps through the years
- hover a pan for its share
- Motion: The beam swings to its tilt with a springy overshoot whenever the year or place changes, the way a real scale settles.
- Sound: A chime on a new place. 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": "balance-scale",
  "title": "Fossil fuels still outweigh clean sources in the world's electricity",
  "subtitle": "Share of electricity from fossil fuels and from low-carbon sources (renewables and nuclear), %, 1990–2025",
  "data": "/charts/balance-scale.data.json"
}
```

## Source
Share of electricity production from fossil fuels; Share of electricity production from low-carbon sources, 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-electricity-low-carbon

Note: The two shares can add to slightly under 100% where a little electricity comes from other sources. The tilt is capped at 20 degrees.

Live: /charts/balance-scale · Manifest: /charts/balance-scale.json · Tags: two parts, balance, tipping point, energy, electricity, climate, renewables
