{
  "id": "alluvial",
  "name": "Alluvial",
  "family": "flow",
  "tier": "pro",
  "summary": "Use an alluvial to show how the same items move between categories across a few steps: who stayed, who switched and where to. Takes the example's three-year table or any tracked items as { steps: [...], items: [{ name, value?, path: [category per step] }] }, with 2 to 5 steps.",
  "title": "Eight countries now get the most power from wind, solar and other renewables; none did in 2000",
  "subtitle": "Largest source of electricity in each country generating at least 20 TWh, 2000, 2012 and 2024",
  "howToRead": "Each strand is one country; it sits in the block of its largest electricity source in each year, so a strand that changes block switched.",
  "useWhen": [
    "the same items are classified again at each step",
    "you want to see switching, not just totals",
    "there are 2 to 5 steps and up to about 8 categories",
    "customers moving between plans, users between states, anything re-classified at each step: pass { steps, items } with each item's path"
  ],
  "avoidWhen": [
    "items are not tracked individually (use stacked bars per step)",
    "flows have volumes that split one item (use a Sankey)",
    "there are many steps (use a slope or a bump chart)"
  ],
  "fields": [
    {
      "name": "years",
      "type": "year",
      "description": "the steps"
    },
    {
      "name": "sources",
      "type": "category",
      "description": "the categories, in ink order"
    },
    {
      "name": "countries[].country",
      "type": "place",
      "description": "one strand"
    },
    {
      "name": "countries[].twh2024",
      "type": "number",
      "description": "electricity generated in 2024, terawatt-hours",
      "unit": "TWh",
      "format": "count"
    },
    {
      "name": "countries[].y2000, y2012, y2024",
      "type": "category",
      "description": "the country's largest source in each year"
    }
  ],
  "shapes": [
    {
      "when": [
        "steps",
        "items"
      ],
      "fields": [
        {
          "name": "steps",
          "type": "category",
          "description": "the step labels, left to right (2 to 5)"
        },
        {
          "name": "categories",
          "type": "category",
          "description": "optional: the categories in stacking and ink order (else in order of first use)",
          "optional": true
        },
        {
          "name": "items[].name",
          "type": "category",
          "description": "one strand"
        },
        {
          "name": "items[].path",
          "type": "category",
          "description": "the item's category at each step, one per step"
        },
        {
          "name": "items[].value",
          "type": "number",
          "description": "optional: a size shown in its tooltip and used to order strands within a block",
          "optional": true
        }
      ]
    }
  ],
  "hints": {
    "noun": "countries",
    "lead": "largest source of electricity"
  },
  "interactions": [
    "hover or tap a strand to read one country's route",
    "hover a block to count its countries",
    "the button recolours strands by where they ended"
  ],
  "motion": "The strands flow from 2000 to 2024 once, left to right, when the chart comes into view.",
  "sound": "A pop on hover pitched by source; a chime on recolour. Quiet while it draws and between steps; mute it from its card.",
  "annotations": [
    {
      "type": "underline",
      "words": "Eight countries",
      "in": "title"
    }
  ],
  "tags": [
    "switching",
    "categories over time",
    "parallel sets",
    "energy",
    "electricity",
    "transition"
  ],
  "mobile": "desktop",
  "mobileNote": "Smallest labels are 5.9 px on a 390 px phone",
  "mobileChecked": "2026-12-02",
  "ratios": [
    "16:9"
  ],
  "bestRatio": "16:9",
  "source": {
    "title": "Energy dataset (electricity generation by source)",
    "publisher": "Our World in Data (Ember, Energy Institute Statistical Review of World Energy)",
    "url": "https://github.com/owid/energy-data",
    "license": "CC BY 4.0",
    "retrieved": "2026-12-01"
  },
  "note": "\"Wind, solar and other\" also includes bioenergy and other renewables. 83 countries with complete data for all three years."
}