{
  "title": {
    "text": "World electricity generation: fossil fuels vs renewables",
    "left": "center",
    "textStyle": {
      "fontSize": 16,
      "fontWeight": 600,
      "color": "#17212b"
    }
  },
  "tooltip": {
    "trigger": "axis"
  },
  "legend": {
    "data": [
      "Fossil-fuel generation",
      "Renewable generation"
    ],
    "bottom": 0,
    "textStyle": {
      "color": "#17212b"
    }
  },
  "grid": {
    "left": 16,
    "right": 24,
    "top": 48,
    "bottom": 48,
    "containLabel": true
  },
  "xAxis": {
    "type": "category",
    "name": "Year",
    "nameLocation": "middle",
    "nameGap": 28,
    "data": [
      "2000",
      "2001",
      "2002",
      "2003",
      "2004",
      "2005",
      "2006",
      "2007",
      "2008",
      "2009",
      "2010",
      "2011",
      "2012",
      "2013",
      "2014",
      "2015",
      "2016",
      "2017",
      "2018",
      "2019",
      "2020",
      "2021",
      "2022",
      "2023",
      "2024"
    ],
    "axisLabel": {
      "interval": 3,
      "hideOverlap": true
    }
  },
  "yAxis": {
    "type": "value",
    "name": "TWh",
    "nameLocation": "middle",
    "nameGap": 52,
    "min": 0,
    "splitLine": {
      "lineStyle": {
        "color": "#d7dee6"
      }
    }
  },
  "series": [
    {
      "name": "Fossil-fuel generation",
      "type": "line",
      "data": [
        9943.5,
        10056.4,
        10535.9,
        11119.9,
        11572.2,
        12135.5,
        12672.4,
        13457.5,
        13640.5,
        13450.7,
        14451.9,
        15104.3,
        15438.1,
        15786.1,
        15810.4,
        15959.0,
        16189.2,
        16518.9,
        16990.0,
        16945.3,
        16506.2,
        17314.0,
        17603.9,
        17820.9,
        18001.4
      ],
      "showSymbol": false,
      "lineStyle": {
        "width": 3,
        "color": "#9c3b2e",
        "type": "solid"
      },
      "itemStyle": {
        "color": "#9c3b2e"
      },
      "emphasis": {
        "focus": "series"
      }
    },
    {
      "name": "Renewable generation",
      "type": "line",
      "data": [
        2854.3,
        2798.8,
        2897.9,
        2923.6,
        3135.8,
        3297.2,
        3452.2,
        3558.4,
        3778.6,
        3915.2,
        4205.0,
        4409.6,
        4760.8,
        5041.1,
        5320.2,
        5529.5,
        5883.5,
        6248.5,
        6645.6,
        7013.1,
        7480.2,
        7896.7,
        8473.7,
        8956.9,
        9836.1
      ],
      "showSymbol": false,
      "lineStyle": {
        "width": 3,
        "color": "#1f7a4d",
        "type": "dashed"
      },
      "itemStyle": {
        "color": "#1f7a4d"
      },
      "emphasis": {
        "focus": "series"
      }
    }
  ]
}
