{
 "title": {
  "text": "When rain fails, fossil plants fill the gap",
  "left": "center",
  "textStyle": {
   "fontSize": 14
  }
 },
 "tooltip": {
  "trigger": "axis",
  "valueFormatter": "v => (v>0?'+':'') + Number(v).toLocaleString('en-US') + ' GWh'"
 },
 "legend": {
  "bottom": 0,
  "data": [
   "Change in hydropower output",
   "Change in fossil & nuclear output"
  ]
 },
 "grid": {
  "left": 70,
  "right": 20,
  "top": 40,
  "bottom": 55
 },
 "xAxis": {
  "type": "category",
  "data": [
   "2001",
   "2014",
   "2021"
  ]
 },
 "yAxis": {
  "type": "value",
  "name": "GWh vs year before"
 },
 "series": [
  {
   "name": "Change in hydropower output",
   "type": "bar",
   "data": [
    -36527.0,
    -17553.0,
    -33563.0
   ],
   "itemStyle": {
    "color": "#1f6fb4"
   }
  },
  {
   "name": "Change in fossil & nuclear output",
   "type": "bar",
   "data": [
    14957.0,
    24352.0,
    42688.0
   ],
   "itemStyle": {
    "color": "#8e44ad"
   }
  }
 ]
}