# US choropleth

> Use a US choropleth to show one rate per state, with a strip of dots underneath so the small north-eastern states can be read too.

- Data type: Values by place (`maps`)
- Free (MIT): install with `npx chartreuse add us-choropleth`, or registry item `/r/us-choropleth.json`
- Example: **Idaho and Florida grew fastest since 2020; New York shrank most** (Change in resident population, April 2020 to July 2024, %)
- How to read it: States in the first ink gained people and those in the second lost them; darker means a bigger change, and the dots below put every state on one scale.
- Phone: Adapts to mobile (Draws its own phone layout below 520px) · Video formats: 16:9, 9:16 (best 9:16)

## Use it when
- one rate or change per US state
- regional patterns matter (the South, the Mountain West)
- readers want to find their own state

## Avoid it when
- the value is a count (big states dominate; use a hex map or bubbles)
- the tiny states carry the story (use a hex map)
- there is no geographic pattern to show

## Fields (data.json)
- `fips` (id): state FIPS code, matching us-atlas
- `state` (place): the state or DC
- `p2020` (number, unit "people", format count): April 2020 estimates base, people
- `p2024` (number, unit "people", format count): 1 July 2024 estimate, people
- `pct` (number, unit "%", format percent): change, %

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 state or its dot to read the change; the two light together
- Motion: States fill from fastest growth to steepest decline while the dots slide out from zero to their places.
- Sound: A soft 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": "us-choropleth",
  "title": "Idaho and Florida grew fastest since 2020; New York shrank most",
  "subtitle": "Change in resident population, April 2020 to July 2024, %",
  "data": "/charts/us-choropleth.data.json"
}
```

## Source
Annual estimates of the resident population for the United States, regions, states, DC and Puerto Rico (Vintage 2024, NST-EST2024-ALLDATA), US Census Bureau, Population Estimates Program (Public domain (US federal government work)), retrieved 2026-12-01: https://www2.census.gov/programs-surveys/popest/datasets/2020-2024/state/totals/NST-EST2024-ALLDATA.csv

Live: /charts/us-choropleth · Manifest: /charts/us-choropleth.json · Tags: choropleth, US map, states, population, growth, diverging colour, census
