{
  "$schema": "https://vega.github.io/schema/vega-lite/v5.json",
  "config": {
    "font": "Switzer, system-ui, sans-serif",
    "view": {
      "stroke": "transparent"
    }
  },
  "data": {
    "values": [
      {
        "Jahr": "2019",
        "Art": "Messung (Systemgrenze 2026)",
        "TWh": 1.77,
        "order": 0
      },
      {
        "Jahr": "2024",
        "Art": "Messung",
        "TWh": 2.1,
        "order": 1
      },
      {
        "Jahr": "2030 tief",
        "Art": "Szenario",
        "TWh": 2.5,
        "order": 2
      },
      {
        "Jahr": "2030 hoch",
        "Art": "Szenario",
        "TWh": 3.2,
        "order": 3
      },
      {
        "Jahr": "2030 Maximum",
        "Art": "Szenario",
        "TWh": 3.5,
        "order": 4
      }
    ]
  },
  "encoding": {
    "x": {
      "field": "Jahr",
      "type": "nominal",
      "sort": {
        "field": "order"
      },
      "title": null,
      "axis": {
        "labelAngle": 0
      }
    },
    "y": {
      "field": "TWh",
      "type": "quantitative",
      "title": "TWh pro Jahr"
    },
    "tooltip": [
      {
        "field": "Jahr"
      },
      {
        "field": "Art"
      },
      {
        "field": "TWh",
        "type": "quantitative"
      }
    ]
  },
  "height": 380,
  "mark": {
    "type": "bar",
    "cornerRadiusEnd": 4
  },
  "title": "Stromverbrauch der Rechenzentren in der Schweiz (TWh)",
  "width": 720
}