All charts/Area & stream
Electricity by source
stacked lays the areas on top of each other, the top edge the total.
{chart 'area', label='year', value='coal, gas, nuclear, wind, solar', stacked, title='Electricity generated by source, in TWh', width=640, height=340}
year,coal,gas,nuclear,wind,solar
2010,310,250,140,40,12
2011,300,235,138,48,20
2012,315,205,136,55,28
2013,305,190,135,62,32
2014,285,180,134,70,36
2015,265,195,132,82,40
2016,225,230,130,90,44
2017,210,240,128,105,48
2018,195,235,127,115,53
2019,150,255,125,130,60
2020,125,245,118,145,70
2021,140,235,120,140,82
2022,150,205,110,155,100
2023,110,190,112,175,118
2024,90,180,112,190,135
{/chart}