{
  "id": "proportional-squares",
  "name": "Proportional squares",
  "family": "scale",
  "tier": "free",
  "summary": "Use proportional squares to compare amounts as squares sharing one corner, so each area can be seen inside the next.",
  "title": "Oil, coal and gas still supplied 87% of the world's energy in 2024",
  "subtitle": "World primary energy by source, 2024, terawatt-hours (substitution method)",
  "howToRead": "Each square's area is one source's energy, all sharing the bottom-left corner; fossil fuels are the three biggest.",
  "useWhen": [
    "a few amounts of very different size",
    "parts that readers should see nested inside the biggest",
    "squares fit the layout better than circles"
  ],
  "avoidWhen": [
    "close values (use bars)",
    "more than about 10 items (past 12 the smallest fold into Other)",
    "parts must sum visibly to a whole (use a treemap or waffle)"
  ],
  "fields": [
    {
      "name": "source",
      "type": "category",
      "description": "the item each square stands for"
    },
    {
      "name": "twh",
      "sign": "non-negative",
      "type": "number",
      "description": "primary energy, TWh",
      "unit": "TWh",
      "format": "count"
    },
    {
      "name": "group",
      "type": "category",
      "description": "optional: the group that colours a square (else hints.groupOf by name; the first group heads the headline and is drawn light)",
      "optional": true
    }
  ],
  "hints": {
    "groups": [
      "fossil",
      "nuclear",
      "renewable"
    ],
    "groupOf": {
      "Oil": "fossil",
      "Coal": "fossil",
      "Gas": "fossil",
      "Nuclear": "nuclear"
    },
    "otherGroup": "renewable"
  },
  "interactions": [
    "hover or tap a square or label to read the source's energy and share"
  ],
  "motion": "Squares unfold from the shared corner, smallest first.",
  "sound": "A pop on hover. Quiet while it draws and between steps; mute it from its card.",
  "annotations": [
    {
      "type": "underline",
      "words": "87%",
      "in": "title"
    }
  ],
  "tags": [
    "proportional squares",
    "area",
    "energy",
    "fossil fuels",
    "renewables",
    "climate",
    "scale"
  ],
  "mobile": "adapts",
  "mobileNote": "Draws its own phone layout below 520px",
  "mobileChecked": "2026-12-02",
  "ratios": [
    "16:9"
  ],
  "bestRatio": "16:9",
  "source": {
    "title": "Energy consumption by source",
    "publisher": "Our World in Data (Energy Institute Statistical Review of World Energy (2025))",
    "url": "https://ourworldindata.org/grapher/energy-consumption-by-source-and-country",
    "license": "CC BY 4.0",
    "retrieved": "2026-12-01"
  },
  "note": "Non-fossil electricity is counted with the substitution method: the fossil input it would take to make the same power."
}