{
  "id": "unit-dots",
  "name": "One dot per item",
  "family": "parts",
  "tier": "pro",
  "summary": "Use one dot per item when the whole is a countable set: every dot is a real thing, and regrouping them shows the shares.",
  "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",
  "howToRead": "Each dot is one earthquake; the buttons regroup the same dots by magnitude, depth or season.",
  "useWhen": [
    "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"
  ],
  "avoidWhen": [
    "thousands of items (bin them)",
    "the items have no identity worth hovering",
    "exact shares matter more than the count"
  ],
  "fields": [
    {
      "name": "place",
      "type": "place",
      "description": "each dot's label (where the earthquake struck)"
    },
    {
      "name": "mag",
      "type": "number",
      "description": "the value that sizes each dot (magnitude); also the largest dot's ring",
      "unit": "magnitude",
      "format": "decimal"
    },
    {
      "name": "depth",
      "type": "number",
      "description": "optional: a number to group by (depth of the source, km)",
      "unit": "km",
      "format": "count",
      "optional": true
    },
    {
      "name": "date",
      "type": "date",
      "description": "optional: a date to group by (the day it struck, UTC): quarters within one year, else years",
      "optional": true
    },
    {
      "name": "tsunami",
      "type": "number",
      "description": "optional: 1 when a tsunami alert flag was set (the hint flags words it in the tooltip)",
      "unit": "flag (0 or 1)",
      "format": "count",
      "fixed": true,
      "optional": true
    }
  ],
  "interactive": [
    "regroup"
  ],
  "interactions": [
    "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.",
  "tags": [
    "unit chart",
    "dot plot",
    "count",
    "force layout",
    "regroup",
    "earthquakes",
    "science",
    "part to whole"
  ],
  "hints": {
    "views": [
      {
        "name": "Magnitude",
        "field": "mag",
        "unit": "magnitude",
        "cuts": [
          6.5,
          7
        ],
        "labels": [
          "6.0 to 6.4",
          "6.5 to 6.9",
          "7.0 and up"
        ]
      },
      {
        "name": "Depth",
        "field": "depth",
        "unit": "km",
        "cuts": [
          70,
          300
        ],
        "labels": [
          "Shallow, under 70 km",
          "70 to 300 km",
          "Deep, over 300 km"
        ]
      },
      {
        "name": "Season",
        "field": "date"
      }
    ],
    "ring": "Strongest",
    "trim": "^\\d{4} | Earthquake$",
    "flags": {
      "tsunami": "tsunami alert issued"
    },
    "after": {
      "depth": "deep"
    }
  },
  "mobile": "desktop",
  "mobileNote": "On a phone labels are hard to read or overlap (checked by eye)",
  "mobileChecked": "2026-12-02",
  "ratios": [
    "16:9"
  ],
  "bestRatio": "16:9",
  "source": {
    "title": "Earthquake catalog (ComCat), magnitude 6 and above, 2024",
    "publisher": "U.S. Geological Survey",
    "url": "https://earthquake.usgs.gov/earthquakes/search/",
    "license": "Public domain (U.S. Government work)",
    "retrieved": "2026-12-01"
  },
  "note": "Depth bands follow the usual shallow (under 70 km), intermediate and deep split."
}