# Radar

> Use a radar chart to compare the shape of a few items' profiles across 5 to 8 measures on the same scale.

- Data type: Several measures per item (`relationships`)
- Pro · not released yet: its code is not available; try it on its page, or use a free chart of the same data type (`relationships`)
- Example: **Each country leans on one source: France on nuclear, Norway on water, Poland on coal, Denmark on wind** (Share of electricity generated from each source, 2023; the dashed outline is the world)
- How to read it: Each coloured shape is one country; the further a corner reaches along a spoke, the bigger that source's share (square-root scale).
- Phone: Adapts to mobile (Draws its own phone layout below 520px) · Video formats: 16:9 (best 9:16)

## Use it when
- 3 to 6 items, each with 5 to 8 measures in the same unit
- the overall shape (spiky, balanced, lopsided) is the point
- a familiar, playful look matters more than precision

## Avoid it when
- readers must compare values exactly (use grouped bars)
- the measures have different units or scales
- more than six items (the shapes pile up; past six they share one grey)
- more than 8 measures (only the first 8 are drawn)

## Fields (data.json)
- `country` (category): the item; the row named in hints.reference, if present, is drawn dashed as a yardstick; every number column but year is a spoke (5 to 8, one unit)
- `year` (year): the year of the data
- `coal` (number, unit "%", format percent): share of electricity from coal, %
- `gas` (number, unit "%", format percent): share from gas, %
- `oil` (number, unit "%", format percent): share from oil, %
- `nuclear` (number, unit "%", format percent): share from nuclear, %
- `hydro` (number, unit "%", format percent): share from hydropower, %
- `wind` (number, unit "%", format percent): share from wind, %
- `solar` (number, unit "%", format percent): share from solar, %

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 a country in the list to bring its shape forward; click to pin it
- hover or tap a corner to read the share against the world
- Motion: Each country's shape unfolds from the centre in turn, with a small overshoot, like a flower opening.
- Sound: A chime when you pin one. 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": "radar",
  "title": "Each country leans on one source: France on nuclear, Norway on water, Poland on coal, Denmark on wind",
  "subtitle": "Share of electricity generated from each source, 2023; the dashed outline is the world",
  "data": "/charts/radar.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

Note: Bioenergy and other renewables are left out, so a country's seven shares can add up to less than 100%.

Live: /charts/radar · Manifest: /charts/radar.json · Tags: radar, spider, star chart, profile, energy, electricity mix, renewables
