# Radial bars

> Use radial bars for an eye-catching ranking: bars bent into rings, the longest on the outside.

- Data type: Values per item (`compare`)
- Pro · not released yet: its code is not available; try it on its page, or use a free chart of the same data type (`compare`)
- Example: **Brazil and Vietnam grow almost half the world's coffee** (Green coffee production, million tonnes, 2024, the twelve largest growers)
- How to read it: Each ring is a country, biggest on the outside; how far its bar sweeps round shows how much coffee it grew.
- Phone: Adapts to mobile (Draws its own phone layout below 520px) · Video formats: 16:9 (best 9:16)

## Use it when
- a striking ranking of 5 to 15 items for a poster, a slide or a video
- one or two items dominate and the rest trail off
- the round shape suits the subject (clocks, cycles, a cup)

## Avoid it when
- values must be compared precisely (outer rings look longer than inner rings for the same value; use sorted bars)
- many items, which makes rings too thin
- the order of items is not by size

## Fields (data.json)
- `world` (number, unit "tonnes", format count): world production, tonnes
- `year` (year): the harvest year
- `countries` (id): list of { country, tonnes }
- `country` (place): the grower
- `tonnes` (number, unit "tonnes", format count): green coffee production, tonnes

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 ring to read tonnes and share of the world
- Motion: Every bar sweeps round from twelve o'clock, outermost first, like a dial filling.
- Sound: A pop pitched by rank 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": "radial-bars",
  "title": "Brazil and Vietnam grow almost half the world's coffee",
  "subtitle": "Green coffee production, million tonnes, 2024, the twelve largest growers",
  "data": "/charts/radial-bars.data.json"
}
```

## Source
Coffee bean production (FAO, FAOSTAT Production), Our World in Data (CC BY 4.0), retrieved 2026-12-01: https://ourworldindata.org/grapher/coffee-bean-production

Note: Bar sweep is proportional to tonnes on every ring, but outer rings are longer in absolute length; read the angle, not the length.

Live: /charts/radial-bars · Manifest: /charts/radial-bars.json · Tags: radial bar, circular bar, ring chart, ranking, coffee, food, agriculture
