# Log bars

> Use log bars to compare values that span many orders of magnitude, where each step on the axis multiplies by ten.

- Data type: One very big or small number (`scale`)
- Free (MIT): install with `npx chartreuse add log-bars`, or registry item `/r/log-bars.json`
- Example: **The compute used to train AI grew 25 orders of magnitude in 76 years** (Training compute of fifteen landmark AI systems, 1950–2026, floating-point operations (log scale))
- How to read it: Each bar is one system; every tick to the right is a thousand times more compute, so equal steps mean equal multiples.
- Phone: Adapts to mobile (Draws its own phone layout below 520px) · Video formats: 16:9 (best 16:9)

## Use it when
- values from tiny to huge (more than 100× apart)
- growth by multiples, not amounts
- readers can learn that each tick is ×10 or ×1,000

## Avoid it when
- values within one order of magnitude (use ordinary bars)
- zero or negative values
- an audience unfamiliar with log scales and no time to explain

## Fields (data.json)
- `system` (category): the item on each bar
- `date` (date): the date or year; sets the colour era (hints.eras when all fall inside the data, else about three even steps) when there is no group
- `flop` (number, unit "FLOP", format compact): training compute, FLOP
- `group` (category): optional colour group, in the data's order (up to six; the rest are 'other')

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 row to read the value and how many times the first row it is
- switch between log and linear axes
- Motion: Bars grow from the left, oldest first; switching to linear squashes all but the newest to nothing.
- Sound: No sound of its own: 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": "log-bars",
  "title": "The compute used to train AI grew 25 orders of magnitude in 76 years",
  "subtitle": "Training compute of fifteen landmark AI systems, 1950–2026, floating-point operations (log scale)",
  "data": "/charts/log-bars.data.json"
}
```

## Source
Computation used to train notable artificial intelligence systems, Our World in Data (Epoch AI) (CC BY 4.0), retrieved 2026-12-01: https://ourworldindata.org/grapher/artificial-intelligence-training-computation

Note: Most values are Epoch AI estimates, not reported figures.

Live: /charts/log-bars · Manifest: /charts/log-bars.json · Tags: log scale, orders of magnitude, AI, machine learning, compute, technology, bars
