{
  "title": {
    "text": "Coal remained the backbone of Moroccan power",
    "left": "center",
    "textStyle": {
      "fontSize": 16,
      "fontWeight": 600,
      "color": "#17212b"
    }
  },
  "legend": {
    "data": [
      "Coal and peat",
      "Natural gas",
      "Oil",
      "Wind",
      "Other renewables"
    ],
    "bottom": 6,
    "textStyle": {
      "color": "#17212b",
      "fontSize": 11
    }
  },
  "grid": {
    "left": 64,
    "right": 20,
    "top": 52,
    "bottom": 84
  },
  "xAxis": {
    "type": "category",
    "data": [
      "2005",
      "2006",
      "2007",
      "2008",
      "2009",
      "2010",
      "2011",
      "2012",
      "2013",
      "2014",
      "2015",
      "2016",
      "2017",
      "2018",
      "2019",
      "2020",
      "2021",
      "2022",
      "2023"
    ],
    "axisLabel": {
      "interval": 2,
      "rotate": 0,
      "color": "#334"
    }
  },
  "yAxis": {
    "type": "value",
    "name": "Gigawatt-hours",
    "axisLabel": {
      "color": "#334"
    },
    "splitLine": {
      "lineStyle": {
        "color": "#e6e8eb"
      }
    }
  },
  "series": [
    {
      "name": "Coal and peat",
      "type": "bar",
      "stack": "gen",
      "data": [
        12730.6,
        12901.8,
        12456.5,
        11661.8,
        10863.3,
        10866.3,
        11678.8,
        11856.1,
        12029.7,
        15818.4,
        17053.1,
        16861.7,
        17545.3,
        21260.7,
        26899.7,
        27205.2,
        28282.3,
        29065.0,
        27148.7
      ],
      "itemStyle": {
        "color": "#5c4030"
      }
    },
    {
      "name": "Natural gas",
      "type": "bar",
      "stack": "gen",
      "data": [
        2003.3,
        2512.3,
        2823.0,
        2867.4,
        3053.5,
        2963.3,
        4050.9,
        6200.6,
        5823.1,
        5599.9,
        5783.6,
        5869.7,
        5836.3,
        5197.8,
        4697.6,
        3458.3,
        3462.6,
        686.3,
        4259.5
      ],
      "itemStyle": {
        "color": "#c17c3a"
      }
    },
    {
      "name": "Oil",
      "type": "bar",
      "stack": "gen",
      "data": [
        2891.9,
        2679.3,
        2794.2,
        4159.6,
        3674.8,
        4732.1,
        5802.7,
        5894.8,
        4741.4,
        2706.7,
        2270.8,
        3005.5,
        3493.3,
        1272.1,
        816.4,
        689.2,
        1375.4,
        4186.2,
        1829.0
      ],
      "itemStyle": {
        "color": "#8c2f2b"
      }
    },
    {
      "name": "Wind",
      "type": "bar",
      "stack": "gen",
      "data": [
        206.3,
        183.2,
        278.9,
        298.2,
        391.4,
        658.8,
        707.3,
        743.2,
        1371.4,
        1938.9,
        2534.6,
        3015.2,
        3050.1,
        3856.0,
        4714.4,
        4607.1,
        5121.9,
        5371.1,
        6560.9
      ],
      "itemStyle": {
        "color": "#2a6f97"
      }
    },
    {
      "name": "Other renewables",
      "type": "bar",
      "stack": "gen",
      "data": [
        976.6,
        995.8,
        916.1,
        931.2,
        2584.6,
        3489.5,
        2032.8,
        1693.6,
        2847.6,
        1705.3,
        1919.0,
        1693.1,
        1669.4,
        2713.0,
        2911.8,
        2455.1,
        2706.2,
        1865.6,
        1034.2
      ],
      "itemStyle": {
        "color": "#3d7a6a"
      }
    }
  ],
  "tooltip": {
    "trigger": "axis",
    "axisPointer": {
      "type": "shadow"
    }
  }
}
