{
  "$schema": "https://vega.github.io/schema/vega-lite/v5.json",
  "config": {
    "font": "Switzer, system-ui, sans-serif",
    "view": {
      "stroke": "transparent"
    }
  },
  "data": {
    "values": [
      {
        "Quelle": "Wasserkraft",
        "Anteil": 55.5,
        "TWh": 37.5,
        "order": 0
      },
      {
        "Quelle": "Kernenergie",
        "Anteil": 27.2,
        "TWh": 18.4,
        "order": 1
      },
      {
        "Quelle": "Photovoltaik",
        "Anteil": 11.8,
        "TWh": 8.0,
        "order": 2
      },
      {
        "Quelle": "Thermische Kraftwerke",
        "Anteil": 5.3,
        "TWh": 3.6,
        "order": 3
      },
      {
        "Quelle": "Wind",
        "Anteil": 0.2,
        "TWh": 0.1,
        "order": 4
      }
    ]
  },
  "encoding": {
    "x": {
      "field": "TWh",
      "type": "quantitative",
      "title": "TWh"
    },
    "y": {
      "field": "Quelle",
      "type": "nominal",
      "sort": {
        "field": "order"
      },
      "title": null
    },
    "tooltip": [
      {
        "field": "Quelle",
        "type": "nominal"
      },
      {
        "field": "TWh",
        "type": "quantitative",
        "format": ",.2~f"
      }
    ]
  },
  "height": 260,
  "mark": {
    "type": "bar",
    "cornerRadiusEnd": 4
  },
  "title": "Landeserzeugung 2025 nach Quelle (TWh, total 67,5 TWh)",
  "width": 720
}