# World tile grid

> Use a world tile grid to give every country one equal square roughly where it is, so small nations count as much as large ones.

- 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: **The world's youngest countries are in Africa: in 40 of them, half the people are under 20** (Median age by country, 2023 estimates, years)
- How to read it: Each square is one country near its real position; darker squares have older populations.
- Phone: Not recommended for mobile (196 labels overlap on a phone) · Video formats: none passed; closest 16:9

## Use it when
- one value per country where every country matters equally
- island and city states would vanish on a real map
- a compact grid that fits a phone

## Avoid it when
- readers need real shapes to find countries
- the value is a total (equal squares hide size)
- regional detail inside countries matters

## Fields (data.json)
- `id` (id): ISO 3166-1 numeric code
- `code` (id): ISO 3166-1 alpha-3 code, printed on the tile
- `name` (place): the country
- `v` (number, unit "years", format decimal): median age, years
- `lon` (number, unit "°", format decimal): centre longitude, places the tile
- `lat` (number, unit "°", format decimal): centre latitude, places the tile

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 square to read the country's median age
- hover a key swatch to show only that band
- Motion: Each square flies from its country's real position to its seat on the grid.
- Sound: A pop on hover, pitched by band. 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": "world-tile-grid",
  "title": "The world's youngest countries are in Africa: in 40 of them, half the people are under 20",
  "subtitle": "Median age by country, 2023 estimates, years",
  "data": "/charts/world-tile-grid.data.json"
}
```

## Source
Median age, Our World in Data (UN World Population Prospects (2024)) (CC BY 4.0), retrieved 2026-12-01: https://ourworldindata.org/grapher/median-age

Note: Tiles are placed by an algorithm that gives each country the free square nearest its centre; crowded regions such as Europe and the Caribbean are spread out.

Live: /charts/world-tile-grid · Manifest: /charts/world-tile-grid.json · Tags: tile grid map, tile map, equal area, age, population, demography, countries
