# Beeswarm

> Use a beeswarm to show every item of a distribution as its own dot along one value axis, packed so none overlap.

- Data type: Many values of one measure (`spread`)
- Pro · not released yet: its code is not available; try it on its page, or use a free chart of the same data type (`spread`)
- Example: **A person in Qatar emits about 800 times the CO₂ of one in DR Congo** (CO₂ from fossil fuels and industry per person, tonnes, 2023; one dot per country, log scale)
- How to read it: Each dot is a country placed at its emissions per person; dots stack up where many countries share a level.
- Phone: Not recommended for mobile (On a phone marks are too small to see or tap (checked by eye)) · Video formats: 16:9 (best 9:16)

## Use it when
- 30 to 300 items on one measure, where each item matters
- you want the shape of the distribution and the names behind it
- a colour can carry one grouping of up to six groups

## Avoid it when
- thousands of items (use a histogram or density)
- exact comparison of two items (use bars)
- the items have no identity worth hovering
- more than six colour groups (the rest share one grey "other")

## Fields (data.json)
- `year` (year): the year shown
- `rows[].country` (place): the country
- `rows[].continent` (category): its group, sets the colour: any labels; up to six get their own colour, the rest share one grey "other"
- `rows[].tonnes` (number, unit "tonnes", format count): CO₂ emissions per person, 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 dot to read the country
- Motion: The swarm bursts out from the median line and settles into place, low emitters first.
- Sound: A soft pop on hover, pitched by continent. 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": "beeswarm",
  "title": "A person in Qatar emits about 800 times the CO₂ of one in DR Congo",
  "subtitle": "CO₂ from fossil fuels and industry per person, tonnes, 2023; one dot per country, log scale",
  "data": "/charts/beeswarm.data.json"
}
```

## Source
Per capita CO₂ emissions, Our World in Data (Global Carbon Budget) (CC BY 4.0), retrieved 2026-12-01: https://ourworldindata.org/grapher/co-emissions-per-capita

Note: Territorial emissions from fossil fuels and cement; land use and imported goods are not counted. Continents follow Our World in Data's grouping.

Live: /charts/beeswarm · Manifest: /charts/beeswarm.json · Tags: distribution, swarm, dots, climate, emissions, carbon, countries
