# Dorling cartogram

> Use a Dorling cartogram to redraw countries as circles sized by a total, kept near their place on the map.

- Data type: Values by place (`maps`)
- Pro · not released yet: its code is not available; try it on its page, or use a free chart of the same data type (`maps`)
- Example: **China made more solar power than the next eight countries combined** (Electricity generated from solar, 2024, terawatt-hours; countries making at least 0.5 TWh)
- How to read it: Each circle is a country near its real position; its area is the solar electricity it generated in 2024.
- Phone: Adapts to mobile (Draws its own phone layout below 520px) · Video formats: 16:9, 9:16 (best 16:9)

## Use it when
- a total per country, where land area would mislead
- a world-scale picture of who has how much
- 10 to 150 places

## Avoid it when
- readers must find countries by exact shape (use a choropleth)
- values are rates (use a choropleth)
- exact comparisons matter (use sorted bars)

## Fields (data.json)
- `id` (id): ISO 3166-1 numeric code
- `name` (place): the country
- `twh` (number, unit "TWh", format count): solar generation, TWh

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 circle to read the country's solar output and share
- Motion: The map fades as each country swells from its own centre into a circle and nudges its neighbours aside.
- Sound: A pop on hover, pitched by rank. 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": "dorling-cartogram",
  "title": "China made more solar power than the next eight countries combined",
  "subtitle": "Electricity generated from solar, 2024, terawatt-hours; countries making at least 0.5 TWh",
  "data": "/charts/dorling-cartogram.data.json"
}
```

## Source
Solar power generation, Our World in Data (Ember; Energy Institute Statistical Review of World Energy) (CC BY 4.0), retrieved 2026-12-01: https://ourworldindata.org/grapher/solar-energy-consumption

Live: /charts/dorling-cartogram · Manifest: /charts/dorling-cartogram.json · Tags: cartogram, Dorling, solar, electricity, energy, renewables, circles
