{
  "title": {
    "text": "Danube nuclear countries, 2023 generation shares",
    "left": "center",
    "textStyle": { "fontSize": 15, "fontWeight": 600, "color": "#17212b" }
  },
  "legend": {
    "top": 34,
    "left": "center",
    "textStyle": { "fontSize": 12, "color": "#17212b" }
  },
  "grid": { "left": 12, "right": 52, "top": 64, "bottom": 28, "containLabel": true },
  "tooltip": { "trigger": "axis", "axisPointer": { "type": "shadow" } },
  "xAxis": {
    "type": "value",
    "name": "% of generation",
    "max": 50,
    "axisLabel": { "formatter": "{value}%", "color": "#334155" },
    "splitLine": { "lineStyle": { "color": "#e2e8f0" } }
  },
  "yAxis": {
    "type": "category",
    "inverse": true,
    "data": ["Hungary", "Bulgaria", "Romania"],
    "axisLabel": { "color": "#17212b", "fontSize": 14, "fontWeight": 600 },
    "axisLine": { "lineStyle": { "color": "#94a3b8" } }
  },
  "color": ["#1f4e79", "#0f766e"],
  "series": [
    {
      "name": "Nuclear",
      "type": "bar",
      "data": [44.8, 40.2, 19.3],
      "barGap": "40%",
      "label": { "show": true, "position": "right", "formatter": "{c}%", "fontSize": 12, "color": "#1f4e79" }
    },
    {
      "name": "Hydropower",
      "type": "bar",
      "data": [0.6, 7.7, 31.3],
      "label": { "show": true, "position": "right", "formatter": "{c}%", "fontSize": 12, "color": "#0f766e" }
    }
  ]
}
