# One dot per item

> Use one dot per item when the whole is a countable set: every dot is a real thing, and regrouping them shows the shares.

- Data type: Shares of a total (`parts`)
- Pro · not released yet: its code is not available; try it on its page, or use a free chart of the same data type (`parts`)
- Example: **Earth had 99 magnitude 6 earthquakes in 2024, and ten reached magnitude 7** (Every earthquake of magnitude 6 or more worldwide, 2024; dot size grows with magnitude)
- How to read it: Each dot is one earthquake; the buttons regroup the same dots by magnitude, depth or season.
- Interactive: regroup
- Phone: Not recommended for mobile (On a phone labels are hard to read or overlap (checked by eye)) · Video formats: 16:9 (best 16:9)

## Use it when
- the whole is a set of 20 to 500 real items
- you want readers to feel the count, not just the share
- the same items can be grouped more than one way: the hint views ([{ name, field, cuts?, labels?, unit? }]; cuts only while the field keeps that unit), else one view per number, date or category field

## Avoid it when
- thousands of items (bin them)
- the items have no identity worth hovering
- exact shares matter more than the count

## Fields (data.json)
- `place` (place): each dot's label (where the earthquake struck)
- `mag` (number, unit "magnitude", format decimal): the value that sizes each dot (magnitude); also the largest dot's ring
- `depth` (number, unit "km", format count): optional: a number to group by (depth of the source, km)
- `date` (date): optional: a date to group by (the day it struck, UTC): quarters within one year, else years
- `tsunami` (number, unit "flag (0 or 1)", format count): optional: 1 when a tsunami alert flag was set (the hint flags words it in the tooltip)

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, depth and date
- the Magnitude, Depth and Season buttons regroup the dots
- Play steps through the three groupings
- Motion: Dots burst out of one tight cluster and settle into groups with a force layout; each regroup sends them flowing to their new cluster.
- Sound: A whoosh on each regroup; a soft pop on hover. 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": "unit-dots",
  "title": "Earth had 99 magnitude 6 earthquakes in 2024, and ten reached magnitude 7",
  "subtitle": "Every earthquake of magnitude 6 or more worldwide, 2024; dot size grows with magnitude",
  "data": "/charts/unit-dots.data.json"
}
```

## Source
Earthquake catalog (ComCat), magnitude 6 and above, 2024, U.S. Geological Survey (Public domain (U.S. Government work)), retrieved 2026-12-01: https://earthquake.usgs.gov/earthquakes/search/

Note: Depth bands follow the usual shallow (under 70 km), intermediate and deep split.

Live: /charts/unit-dots · Manifest: /charts/unit-dots.json · Tags: unit chart, dot plot, count, force layout, regroup, earthquakes, science, part to whole
