# Coin stack

> Use coin stacks to show money per item as piles of coins, so the gap between rich and poor reads as a tower beside a sliver.

- Data type: Values per item (`compare`)
- Pro · not released yet: its code is not available; try it on its page, or use a free chart of the same data type (`compare`)
- Example: **Output per person in Switzerland is about 94 times Nigeria's** (GDP per person, current US dollars, 2025; each coin is $5,000)
- How to read it: Each stack is one country's GDP per person in $5,000 coins; the top coin is cut to the remainder.
- Phone: Adapts to mobile (Draws its own phone layout below 520px) · Video formats: 16:9, 9:16 (best 9:16)

## Use it when
- amounts of money per person, per item or per year
- 5 to 10 items with big gaps between them
- a friendly opener for an economics explainer

## Avoid it when
- values can be negative
- close values need comparing (use bars)
- amounts aren't money (coins would mislead)

## Fields (data.json)
- `country` (place): country
- `usd` (number, unit "USD", format currency): GDP per person, current US$
- `year` (year): year

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 stack to read the amount and how many times Nigeria's it is
- Motion: Coins drop onto every stack at once, one by one with a small bounce, so the poorest stacks finish almost at once while Switzerland keeps climbing.
- Sound: A clink for every other coin on the tallest stack; a pop on hover. Quiet while it draws and between steps; mute it from its card. (sound is off until the viewer turns it on)
- Physics settings: gravity (the Studio's Physics section, a look's `physics`, or `render --physics key=value`; docs/look-format.md)

## Example spec
```json
{
  "chart": "coin-stack",
  "title": "Output per person in Switzerland is about 94 times Nigeria's",
  "subtitle": "GDP per person, current US dollars, 2025; each coin is $5,000",
  "data": "/charts/coin-stack.data.json"
}
```

## Source
GDP per capita (current US$), NY.GDP.PCAP.CD, World Bank (World Development Indicators API) (CC BY 4.0), retrieved 2026-12-01: https://data.worldbank.org/indicator/NY.GDP.PCAP.CD

Note: GDP per person at market exchange rates; it is output, not income in people's pockets, and it ignores differences in prices between countries.

Live: /charts/coin-stack · Manifest: /charts/coin-stack.json · Tags: money, income, inequality, isotype, unit chart, economics
