{
  "id": "sorted-bars",
  "name": "Sorted bars",
  "family": "compare",
  "tier": "free",
  "summary": "Use sorted bars to rank items by one value so the order and the gaps read at a glance.",
  "title": "Five G20 countries already make most of their electricity from renewables",
  "subtitle": "Share of electricity generated from renewables, G20 countries and the world, 2024, %",
  "howToRead": "Each bar is one country's share of electricity from renewables; the orange bar is the world average.",
  "useWhen": [
    "one value per item and the ranking is the point",
    "5 to 25 items with readable names",
    "you want one reference bar (an average or a target) among them"
  ],
  "avoidWhen": [
    "the order of items is meaningful in itself, like months (keep that order)",
    "values change over time (use a line or a bump chart)",
    "two values per item (use a dumbbell or grouped bars)"
  ],
  "fields": [
    {
      "name": "country",
      "type": "category",
      "description": "the item; \"World\" is drawn as the reference bar"
    },
    {
      "name": "share",
      "type": "number",
      "sign": "non-negative",
      "description": "share of electricity from renewables, %",
      "unit": "%",
      "format": "percent"
    }
  ],
  "interactions": [
    "hover or tap a bar to read its share against the world average"
  ],
  "motion": "Bars grow from the axis one after another, top first, while their labels count up, so the ranking builds in order.",
  "sound": "A pop pitched by rank on hover. Quiet while it draws and between steps; mute it from its card.",
  "annotations": [
    {
      "type": "underline",
      "words": "Five G20 countries",
      "in": "title"
    }
  ],
  "tags": [
    "ranking",
    "bar chart",
    "sorted",
    "energy",
    "renewables",
    "electricity",
    "climate"
  ],
  "mobile": "adapts",
  "mobileNote": "Draws its own phone layout below 520px",
  "mobileChecked": "2026-12-02",
  "ratios": [
    "16:9"
  ],
  "bestRatio": "9:16",
  "source": {
    "title": "Energy dataset (renewables_share_elec), from Ember and the Energy Institute",
    "publisher": "Our World in Data",
    "url": "https://github.com/owid/energy-data",
    "license": "CC BY 4.0",
    "retrieved": "2026-12-01"
  },
  "note": "Renewables include hydro, wind, solar, bioenergy and other renewables; nuclear is not counted."
}