{
  "id": "ranked-table",
  "name": "Ranked table",
  "family": "compare",
  "tier": "pro",
  "summary": "Use a ranked table when readers need exact values and several attributes per item, with inline bars and rank badges to keep the order visible.",
  "title": "Kamchatka's magnitude 8.8 released more energy than 2025's other big earthquakes put together",
  "subtitle": "Every earthquake of magnitude 7 or more in 2025, ranked by magnitude; bars show energy as a share of the largest",
  "howToRead": "Each row is one earthquake, strongest first; the bar is its energy compared with the 8.8, and the toggle switches the bars to magnitude.",
  "useWhen": [
    "readers need exact values and two or three attributes per item (a label, the ranked value, and up to three columns named in the hint columns: [{ field, head }])",
    "the ranking matters and the list is up to about 25 rows",
    "a scale is hard to feel (logarithmic magnitudes, money) and an inline bar helps"
  ],
  "avoidWhen": [
    "the pattern matters more than the values (use a chart)",
    "more than about 25 rows without search or paging",
    "only one attribute per item (use sorted bars)"
  ],
  "fields": [
    {
      "name": "place",
      "type": "place",
      "description": "each row's label (the USGS place name of the epicentre; tidied by the hints trim and short)"
    },
    {
      "name": "mag",
      "type": "number",
      "description": "the value rows are ranked by (moment magnitude; with the unit magnitude the bars can show energy)",
      "unit": "magnitude",
      "format": "decimal"
    },
    {
      "name": "depth",
      "type": "number",
      "description": "optional column: depth of the hypocentre, km",
      "unit": "km",
      "format": "count",
      "optional": true
    },
    {
      "name": "date",
      "type": "date",
      "description": "optional column: date (UTC); also breaks ties, earliest first",
      "optional": true
    },
    {
      "name": "tsunami",
      "type": "number",
      "description": "optional: USGS tsunami flag (1 when the event is large and in an oceanic region; not a confirmed tsunami); not drawn",
      "unit": "flag (0 or 1)",
      "format": "count",
      "fixed": true,
      "optional": true
    },
    {
      "name": "url",
      "type": "text",
      "description": "optional: the USGS event page; not drawn",
      "optional": true
    }
  ],
  "interactions": [
    "hover or tap a row to read its energy against #1",
    "the Bars chips switch between energy and magnitude"
  ],
  "motion": "Rows deal in from the right like cards, then the bars fill; switching the bar mode rescales them smoothly.",
  "sound": "A chime on toggle; a pop pitched by rank on hover. Quiet while it draws and between steps; mute it from its card.",
  "annotations": [
    {
      "type": "underline",
      "words": "put together",
      "in": "title"
    }
  ],
  "tags": [
    "ranked table",
    "table",
    "leaderboard",
    "inline bars",
    "earthquakes",
    "science",
    "logarithmic"
  ],
  "hints": {
    "barsFrom": 6.5,
    "valueHead": "MAG",
    "labelHead": "Where",
    "columns": [
      {
        "field": "date",
        "head": "Date"
      },
      {
        "field": "depth",
        "head": "Depth"
      }
    ],
    "trim": "^\\d{4}\\s+|\\s+Earthquake$",
    "short": {
      "Burma (Myanmar)": "Myanmar"
    },
    "top": "the largest"
  },
  "mobile": "adapts",
  "mobileNote": "Draws its own phone layout below 520px",
  "mobileChecked": "2026-12-02",
  "ratios": [],
  "bestRatio": "9:16",
  "source": {
    "title": "ANSS Comprehensive Earthquake Catalog (ComCat), event query: 2025, magnitude 7+",
    "publisher": "US Geological Survey Earthquake Hazards Program",
    "url": "https://earthquake.usgs.gov/fdsnws/event/1/query?format=geojson&starttime=2025-01-01&endtime=2026-01-01&minmagnitude=7",
    "license": "Public domain (US government work)",
    "retrieved": "2026-12-01"
  },
  "note": "Energy uses the standard rule that each whole step of magnitude is about 32 times the energy (10^1.5)."
}