{
  "title": {
    "text": "Morocco's electricity in 2023 was mostly coal",
    "left": "center",
    "textStyle": {
      "fontSize": 16,
      "fontWeight": 600,
      "color": "#17212b"
    }
  },
  "grid": {
    "left": 150,
    "right": 88,
    "top": 56,
    "bottom": 48
  },
  "xAxis": {
    "type": "value",
    "name": "Gigawatt-hours",
    "nameLocation": "middle",
    "nameGap": 30,
    "axisLabel": {
      "color": "#334"
    },
    "splitLine": {
      "lineStyle": {
        "color": "#e6e8eb"
      }
    }
  },
  "yAxis": {
    "type": "category",
    "data": [
      "Other (incl. solar thermal)",
      "Hydropower",
      "Solar PV",
      "Oil",
      "Natural gas",
      "Wind (onshore)",
      "Coal and peat"
    ],
    "axisLabel": {
      "color": "#17212b",
      "fontSize": 12
    },
    "axisTick": {
      "show": false
    }
  },
  "series": [
    {
      "type": "bar",
      "data": [
        {
          "value": 204.3,
          "itemStyle": {
            "color": "#8a8a8a"
          }
        },
        {
          "value": 353.0,
          "itemStyle": {
            "color": "#3d7a6a"
          }
        },
        {
          "value": 639.6,
          "itemStyle": {
            "color": "#d4a017"
          }
        },
        {
          "value": 1829.0,
          "itemStyle": {
            "color": "#8c2f2b"
          }
        },
        {
          "value": 4259.5,
          "itemStyle": {
            "color": "#c17c3a"
          }
        },
        {
          "value": 6560.9,
          "itemStyle": {
            "color": "#2a6f97"
          }
        },
        {
          "value": 27148.7,
          "itemStyle": {
            "color": "#5c4030"
          }
        }
      ],
      "label": {
        "show": true,
        "position": "right",
        "color": "#17212b",
        "fontSize": 11
      },
      "barWidth": "62%"
    }
  ],
  "tooltip": {
    "trigger": "axis",
    "axisPointer": {
      "type": "shadow"
    }
  }
}
