# Particle portrait

> Use a particle portrait when one dot per unit can draw a recognisable shape: the data itself paints the picture, then regroups to show the totals.

- 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: **Draw the world with one dot per five million people and Asia takes three dots in five** (World population by country, 2023; each particle is five million people, placed inside its country)
- How to read it: Each dot is five million people inside their country, coloured by continent; press Continents and the dots regroup into one pile each.
- Interactive: regroup
- Phone: Adapts to mobile (Draws its own phone layout below 520px) · Video formats: 16:9, 9:16 (best 9:16)

## Use it when
- a count can be shown as units that form a meaningful shape
- an opening image for a story or a talk
- you want to move from where to how many with one transition

## Avoid it when
- precision matters more than impression
- small places would vanish and they are the story
- the shape the dots form says nothing

## Fields (data.json)
- `id` (id): ISO 3166 numeric code, matches the map (else the country name is tried)
- `country` (place): the country
- `continent` (category): the group that colours its dots and makes its pile (any values; past six the smallest fold into Other)
- `lat` (number, unit "degrees", format decimal): optional: latitude, to place a row the map lacks (else its id or name finds the country)
- `lon` (number, unit "degrees", format decimal): optional: longitude, with lat
- `population` (number, unit "people", format count): people, 2023

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 its country
- Map and Continents regroup the particles
- Motion: The particles drift in from a loose cloud and settle into their countries; switching view sends them flying to their continent's pile and back.
- Sound: A pop on hover pitched by continent. 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": "particle-portrait",
  "title": "Draw the world with one dot per five million people and Asia takes three dots in five",
  "subtitle": "World population by country, 2023; each particle is five million people, placed inside its country",
  "data": "/charts/particle-portrait.data.json"
}
```

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

Note: Dots are rounded per country, so countries under 2.5 million people get none; places too small for the 1:110m map (such as Singapore and Hong Kong) are drawn at their coordinates. Positions inside a country are random, not where people live.

Live: /charts/particle-portrait · Manifest: /charts/particle-portrait.json · Tags: particles, unit chart, dot map, data art, population, world, generative
