# Bivariate map

> Use a bivariate map to colour places by two measures at once with a 3×3 key, when the link between them is the story.

- 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: **No low-income country is a high emitter: income and CO2 per person rise together** (GDP per person (PPP, 2021 dollars) and CO2 per person, by country, 2023, in thirds)
- How to read it: One ink grows with income and the other with CO2 per person; grey countries are low on both, and the full blend of both inks is high on both.
- Phone: Not recommended for mobile (1 label is cut off at the drawing's edge) · Video formats: 16:9 (best 16:9)

## Use it when
- two measures per place and their overlap matters
- readers can learn a 3×3 key
- finding places that break the pattern

## Avoid it when
- exact values matter (use a scatter)
- more than two measures
- an audience new to maps (use two maps side by side)

## Fields (data.json)
- `id` (id): ISO 3166-1 numeric code
- `name` (place): the country
- `gdp` (number, unit "USD", format currency): GDP per person, PPP, constant 2021 international $
- `co2` (number, unit "tonnes", format count): CO2 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 country to read both values and its cell
- hover a key square to show only that cell's countries
- Motion: The income ink lands first, then the carbon ink mixes in.
- Sound: A pop on hover, pitched by cell. 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": "bivariate-map",
  "title": "No low-income country is a high emitter: income and CO2 per person rise together",
  "subtitle": "GDP per person (PPP, 2021 dollars) and CO2 per person, by country, 2023, in thirds",
  "data": "/charts/bivariate-map.data.json"
}
```

## Source
GDP per capita, PPP (World Bank) and CO2 emissions per capita (Global Carbon Budget), Our World in Data (World Bank; Global Carbon Budget 2025) (CC BY 4.0), retrieved 2026-12-01: https://ourworldindata.org/grapher/co-emissions-per-capita

Note: Thirds split the 193 countries with both values: income at $9,899 and $30,617, CO2 at 1.42 and 4.63 tonnes a person.

Live: /charts/bivariate-map · Manifest: /charts/bivariate-map.json · Tags: bivariate, choropleth, two variables, GDP, CO2, climate, inequality, 3x3 key
