Values per item / Grouped bars
Grouped bars
Use grouped bars to compare two to four series within each item, side by side on one baseline.
Free (MIT) · Values per item · Adapts to mobile
China made more solar power in 2024 than the US, India and Germany combined
Electricity generated from solar, wind and hydro, terawatt-hours (TWh), 2024
Each group is a country and each colour a source; turn sources on or off with the chips below.
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: Bars rise country by country; toggling a source slides the others to fill the gap and rescales smoothly.
Sound: A chime on each toggle; a pop on hover. Quiet while it draws and between steps; mute it from its card. Sound is off until the viewer turns it on.
Source: Energy dataset (solar_electricity, wind_electricity, hydro_electricity), from Ember and the Energy Institute, Our World in Data (CC BY 4.0), retrieved 2026-12-01.
Data
| Country | Solar | Wind | Hydro |
|---|---|---|---|
| China | 839 | 997 | 1,354 |
| United States | 304 | 452 | 237 |
| Brazil | 71.3 | 108 | 413 |
| India | 143 | 81.5 | 157 |
| Germany | 74.1 | 142 | 23.8 |
| Japan | 96.7 | 11.5 | 79.5 |