{
  "id": "stacked-area",
  "name": "Stacked area",
  "family": "time",
  "tier": "free",
  "summary": "Use a stacked area to show how a total and its parts change over time, when the parts add up to the whole.",
  "title": "Wind and solar overtook hydropower in 2024 and now trail only coal and gas",
  "subtitle": "World electricity generation by source, terawatt-hours, 1985 to 2025",
  "howToRead": "Each band is one source; its thickness is that source's electricity and the top edge is the world total.",
  "useWhen": [
    "parts add up to a meaningful total",
    "both the total and the mix matter",
    "2 to 6 parts"
  ],
  "avoidWhen": [
    "readers must compare the middle bands exactly (use lines or small multiples)",
    "parts don't add up",
    "more than six parts"
  ],
  "fields": [
    {
      "name": "year",
      "type": "year",
      "description": "the year"
    },
    {
      "name": "coal",
      "series": true,
      "type": "number",
      "sign": "non-negative",
      "description": "electricity from coal, TWh",
      "unit": "TWh",
      "format": "count"
    },
    {
      "name": "gas",
      "series": true,
      "type": "number",
      "sign": "non-negative",
      "description": "electricity from gas, TWh",
      "unit": "TWh",
      "format": "count"
    },
    {
      "name": "nuclear",
      "series": true,
      "type": "number",
      "sign": "non-negative",
      "description": "electricity from nuclear, TWh",
      "unit": "TWh",
      "format": "count"
    },
    {
      "name": "hydro",
      "series": true,
      "type": "number",
      "sign": "non-negative",
      "description": "electricity from hydropower, TWh",
      "unit": "TWh",
      "format": "count"
    },
    {
      "name": "windSolar",
      "series": true,
      "type": "number",
      "sign": "non-negative",
      "description": "electricity from wind plus solar, TWh",
      "unit": "TWh",
      "format": "count"
    },
    {
      "name": "other",
      "series": true,
      "type": "number",
      "sign": "non-negative",
      "description": "oil, bioenergy and other renewables, TWh",
      "unit": "TWh",
      "format": "count"
    }
  ],
  "interactive": [
    "filter"
  ],
  "interactions": [
    "hover a band to read its value and share in any year",
    "the legend buttons switch sources off and on; the rest re-stack"
  ],
  "motion": "Bands rise from the baseline one after another, coal first; switching a source off re-stacks the rest smoothly.",
  "sound": "A pop when the hovered year changes, pitched by source; a whoosh when the stack re-forms. Quiet while it draws and between steps; mute it from its card.",
  "annotations": [
    {
      "type": "underline",
      "words": "overtook hydropower",
      "in": "title"
    }
  ],
  "tags": [
    "stacked area",
    "parts over time",
    "legend toggle",
    "energy",
    "electricity",
    "climate"
  ],
  "mobile": "adapts",
  "mobileNote": "Draws its own phone layout below 520px",
  "mobileChecked": "2026-12-02",
  "ratios": [
    "16:9"
  ],
  "bestRatio": "16:9",
  "source": {
    "title": "Electricity production by source",
    "publisher": "Our World in Data (Ember; Energy Institute Statistical Review of World Energy)",
    "url": "https://ourworldindata.org/grapher/electricity-prod-source-stacked",
    "license": "CC BY 4.0",
    "retrieved": "2026-12-01"
  },
  "note": "Wind and solar are summed into one band, and oil, bioenergy and other renewables into another, to keep six colours."
}