{
  "title": {
    "text": "Oil's share of electricity generation",
    "subtext": "Percent of total generation, 2010–2023",
    "left": "center",
    "textStyle": { "fontSize": 18, "fontWeight": 600, "color": "#17212b" },
    "subtextStyle": { "fontSize": 12, "color": "#4a5b6a" }
  },
  "legend": {
    "top": 52,
    "data": ["Yemen", "Saudi Arabia", "Iran"]
  },
  "tooltip": {
    "trigger": "axis",
    "axisPointer": { "type": "line" }
  },
  "grid": {
    "left": 56,
    "right": 24,
    "top": 88,
    "bottom": 56
  },
  "xAxis": {
    "type": "category",
    "name": "Year",
    "nameLocation": "middle",
    "nameGap": 32,
    "data": [2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023],
    "boundaryGap": false,
    "axisLabel": { "rotate": 0 }
  },
  "yAxis": {
    "type": "value",
    "name": "% of electricity generation",
    "min": 0,
    "max": 100,
    "nameGap": 36
  },
  "series": [
    {
      "name": "Yemen",
      "type": "line",
      "showSymbol": true,
      "symbol": "circle",
      "symbolSize": 8,
      "lineStyle": { "width": 3, "type": "solid", "color": "#9a3b2f" },
      "itemStyle": { "color": "#9a3b2f" },
      "data": [73.43, 78.42, 68.57, 67.95, 65.92, 58.7, 63.88, 93.38, 89.83, 91.19, 88.52, 88.19, 88.98, 88.79]
    },
    {
      "name": "Saudi Arabia",
      "type": "line",
      "showSymbol": true,
      "symbol": "diamond",
      "symbolSize": 8,
      "lineStyle": { "width": 3, "type": "dashed", "color": "#1f4e79" },
      "itemStyle": { "color": "#1f4e79" },
      "data": [53.86, 56.66, 59.43, 55.95, 62.09, 62.58, 53.08, 45.89, 41.98, 43.4, 41.59, 41.58, 41.14, 40.82]
    },
    {
      "name": "Iran",
      "type": "line",
      "showSymbol": true,
      "symbol": "triangle",
      "symbolSize": 8,
      "lineStyle": { "width": 3, "type": "dotted", "color": "#2f6f4e" },
      "itemStyle": { "color": "#2f6f4e" },
      "data": [19.76, 27.76, 27.27, 32.56, 21.67, 14.42, 11.08, 8.57, 9.41, 8.27, 7.95, 8.25, 13.39, 14.82]
    }
  ]
}
