# Flow field

> Use a flow field to turn point data into a texture: thousands of strokes follow a current that swirls around each data point, so clusters become storms you can see from across a room.

- 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: **Most of 2025's 145 strongest earthquakes struck around the rim of the Pacific** (Earthquakes of magnitude 6 or more, 2025; strokes swirl around each quake, wider and brighter for bigger ones)
- How to read it: Each orange dot is one earthquake; the strokes around it bend into a whirl whose size grows with its magnitude, and quiet areas keep a calm drift.
- 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
- dozens to hundreds of located events
- an atmospheric cover image that still marks every real point
- where things cluster matters more than exact values

## Avoid it when
- readers need to compare magnitudes precisely (use a dot map or a table)
- the strokes could be mistaken for a real flow such as wind
- very dense points (the swirls merge into noise)

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

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 place, magnitude, date and depth
- Motion: The strokes grow along the field from their seeds over about two seconds, then the quakes appear, smallest first.
- Sound: No sound of its own: 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": "flow-field",
  "title": "Most of 2025's 145 strongest earthquakes struck around the rim of the Pacific",
  "subtitle": "Earthquakes of magnitude 6 or more, 2025; strokes swirl around each quake, wider and brighter for bigger ones",
  "data": "/charts/flow-field.data.json"
}
```

## Source
USGS Earthquake Catalog (FDSN event web service), M6+ for 2025, U.S. Geological Survey (Public domain (US government work)), retrieved 2026-12-01: https://earthquake.usgs.gov/fdsnws/event/1/

Note: The current is invented: noise plus a swirl around each quake. Only the dots and the size of each swirl carry data. Land outlines from Natural Earth via world-atlas.

Live: /charts/flow-field · Manifest: /charts/flow-field.json · Tags: flow field, generative art, data art, earthquakes, geology, map, Ring of Fire
