# Spike map

> Use a spike map to show amounts at many places with height instead of area, so crowded points stay readable.

- 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: **Seven in ten big US cities grew between 2020 and 2025** (Population of the 348 US cities with 100,000+ people, 2025 estimate; colour shows change since 2020)
- How to read it: Each spike rises from a city; its height is the city's population, and its ink shows whether it grew or shrank since the 2020 census.
- Phone: Adapts to mobile (Draws its own phone layout below 520px) · Video formats: none passed; closest 9:16

## Use it when
- many places, many close together
- values span a wide range
- you want a striking skyline of where amounts pile up
- points anywhere: a US map when every point is in the US, else a world or regional map fitted to them

## Avoid it when
- readers must compare exact heights (use bars)
- a few points only (use bubbles)
- the values are rates (use a choropleth)

## Fields (data.json)
- `city` (place): each spike's label (municipality)
- `st` (category): optional: a short note after the label (state abbreviation)
- `p2025` (number, unit "people", format count): the spike's height (1 July 2025 estimate, people)
- `p2020` (number, unit "people", format count): optional: a baseline that colours each spike by rise or fall (2020 census, people); the key's words come from the hints up, down, from and noun
- `lat` (number, unit "°", format decimal): latitude; the US map when every point is in the US, else a world or regional map fitted to the points
- `lon` (number, unit "°", format decimal): longitude

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 spike to read the city, its population and its change
- Motion: Spikes rise from west to east across the country.
- Sound: A pop on hover, higher for growing cities. 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": "spike-map",
  "title": "Seven in ten big US cities grew between 2020 and 2025",
  "subtitle": "Population of the 348 US cities with 100,000+ people, 2025 estimate; colour shows change since 2020",
  "data": "/charts/spike-map.data.json"
}
```

## Source
List of United States cities by population (2025 estimates, 2020 census, coordinates), Wikipedia, from US Census Bureau estimates (CC BY-SA 4.0), retrieved 2026-12-01: https://en.wikipedia.org/wiki/List_of_United_States_cities_by_population

Note: City populations are within city limits, not metro areas. Alaska and Hawaii are drawn in insets, as on the census map.

Live: /charts/spike-map · Manifest: /charts/spike-map.json · Tags: spike map, US cities, population, growth, proportional symbols, census
