# Bubble map

> Use a bubble map to show amounts at places, with each circle's area set by the amount, when totals matter more than territory.

- Data type: Values by place (`maps`)
- Free (MIT): install with `npx chartreuse add bubble-map`, or registry item `/r/bubble-map.json`
- Example: **One Kamchatka quake released 85% of the energy of 2025's big earthquakes** (Earthquakes of magnitude 6.5 or more, 2025; circle area is energy released)
- How to read it: Each circle is one earthquake; its area is the energy it released, so a magnitude 8.8 dwarfs a 7.
- Phone: Adapts to mobile (Draws its own phone layout below 520px) · Video formats: 16:9 (best 9:16)

## Use it when
- totals or counts at points or places
- a few places hold most of the amount
- location and size both matter

## Avoid it when
- values are rates or shares (use a choropleth)
- hundreds of points overlap (use a hexbin or density)
- readers need exact values (use sorted bars)

## Fields (data.json)
- `place` (place): USGS place description
- `mag` (number, unit "magnitude", format decimal): moment magnitude
- `date` (date): date, UTC
- `lon` (number, unit "°", format decimal): longitude
- `lat` (number, unit "°", format decimal): latitude
- `depth` (number, unit "km", format count): depth, km

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 quake and its share of the energy
- switch between sizing by energy and by magnitude
- Play steps through the year by date
- Motion: Small quakes pop in first; the giant lands last.
- Sound: A pop on hover, pitched by magnitude; a whoosh when the sizing changes. 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": "bubble-map",
  "title": "One Kamchatka quake released 85% of the energy of 2025's big earthquakes",
  "subtitle": "Earthquakes of magnitude 6.5 or more, 2025; circle area is energy released",
  "data": "/charts/bubble-map.data.json"
}
```

## Source
Earthquake catalogue (ComCat), magnitude 6.5+, 1 January to 31 December 2025, USGS Earthquake Hazards Program (Public domain (US federal government work)), retrieved 2026-12-01: https://earthquake.usgs.gov/fdsnws/event/1/query?format=geojson&starttime=2025-01-01&endtime=2026-01-01&minmagnitude=6.5

Note: Energy uses the Gutenberg–Richter relation, log10 E = 1.5 M + 4.8 (joules); it is an estimate, not a measurement.

Live: /charts/bubble-map · Manifest: /charts/bubble-map.json · Tags: bubble map, proportional symbols, earthquakes, energy, magnitude, log scale, USGS
