# Dot density

> Use a dot density map to show a total as countable dots scattered inside each area, so amounts feel physical.

- 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 emits a third of the world's carbon dioxide** (Annual CO2 from fossil fuels and industry, 2024; one dot is 20 million tonnes)
- How to read it: Each dot is 20 million tonnes of CO2, dropped at random inside the country that emitted it; dense areas emit more.
- Phone: Adapts to mobile (Draws its own phone layout below 520px) · Video formats: 9:16 (best 9:16)

## Use it when
- a total (people, tonnes, votes) across areas
- you want amounts to feel countable
- the pattern inside regions matters more than exact values

## Avoid it when
- small areas with big totals (dots pile up; use bubbles)
- rates or shares (use a choropleth)
- readers will read the dot positions as real locations

## Fields (data.json)
- `id` (id): ISO 3166-1 numeric code
- `name` (place): the country
- `t` (number, unit "tonnes", format count): CO2 emitted in 2024, 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 country to read its emissions and light its dots
- Motion: Dots rain onto the map a few at a time.
- Sound: A pop 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": "dot-density",
  "title": "China emits a third of the world's carbon dioxide",
  "subtitle": "Annual CO2 from fossil fuels and industry, 2024; one dot is 20 million tonnes",
  "data": "/charts/dot-density.data.json"
}
```

## Source
Annual CO2 emissions, Our World in Data (Global Carbon Budget (2025)) (CC BY 4.0), retrieved 2026-12-01: https://ourworldindata.org/grapher/annual-co2-emissions-per-country

Note: Dots are placed at random within each country, not at real sources. Countries emitting under 10 million tonnes get no dot.

Live: /charts/dot-density · Manifest: /charts/dot-density.json · Tags: dot density, dot map, CO2, emissions, climate, unit dots, countable
