Values over time / Stacked area

Stacked area

Use a stacked area to show how a total and its parts change over time, when the parts add up to the whole.

Free (MIT) · Values over time · Adapts to mobile

Wind and solar overtook hydropower in 2024 and now trail only coal and gas

World electricity generation by source, terawatt-hours, 1985 to 2025

Each band is one source; its thickness is that source's electricity and the top edge is the world total.

On phones: adapts to mobile with its own phone layout (Draws its own phone layout below 520px). Video formats: 16:9, best 16:9.

Motion: Bands rise from the baseline one after another, coal first; switching a source off re-stacks the rest smoothly.

Sound: A pop when the hovered year changes, pitched by source; a whoosh when the stack re-forms. Quiet while it draws and between steps; mute it from its card. Sound is off until the viewer turns it on.

Source: Electricity production by source, Our World in Data (Ember; Energy Institute Statistical Review of World Energy) (CC BY 4.0), retrieved 2026-12-01. Wind and solar are summed into one band, and oil, bioenergy and other renewables into another, to keep six colours.

Data

Wind and solar overtook hydropower in 2024 and now trail only coal and gas. Source: Our World in Data (Ember; Energy Institute Statistical Review of World Energy), Electricity production by source
YearCoalGasNuclearHydroWind solarOther
19853,7481,4261,4891,9790.11,188
19863,8391,4331,5952,0060.21,250
19874,0581,5171,7352,0330.21,267
19884,2011,5411,8912,0980.31,343
19894,3771,7291,9452,0882.91,496
19904,4601,7892,0012,15941,517
19914,5571,8142,0962,2094.61,471
19924,6501,8282,1122,2085.21,462
19934,7281,8622,1852,3416.31,405
19944,8921,9242,2262,3567.71,446
19955,0392,0352,3232,4838.91,410
19965,2802,1002,4072,5179.91,398
19975,3962,2702,3902,56112.81,403
19985,5112,4082,4312,58116.71,458
19995,6312,6002,5242,60122.11,442
20005,8092,7462,5412,63032.21,522
20015,8912,9152,6132,56439.61,479
20026,1443,1052,6552,61253.91,481
20036,5753,2562,6012,61265.31,519
20046,7973,5032,7192,80388.31,504
20057,1673,6812,7272,9121081,539
20067,5673,9012,7623,0181391,453
20078,0524,2192,7043,0631781,498
20088,0744,3612,6953,2452331,495
20097,9514,3822,6573,2412961,416
20108,4584,8082,7263,4283781,466
20118,9114,8662,6103,4885041,593
20128,9605,1612,4323,6606261,676
20139,4245,0582,4493,7917661,668
20149,6045,2142,4993,8719041,656
20159,2845,5402,5333,8821,0861,678
20169,3285,8502,5714,0151,2881,643
20179,6555,9742,5944,0541,5841,580
201810,0336,2252,6594,1771,8431,528
20199,8266,4012,7544,2282,1191,504
20209,4376,3832,6484,3472,4451,463
202110,1576,5572,7624,2892,9111,584
202210,2406,6282,6404,3243,4411,645
202310,3966,6992,6984,2403,9831,649
202410,5396,8832,7774,4344,6521,646
202510,4726,9212,8124,4355,4921,641