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

China made more solar power in 2024 than the US, India and Germany combined. Source: Our World in Data, Energy dataset (solar_electricity, wind_electricity, hydro_electricity), from Ember and the Energy Institute
CountrySolarWindHydro
China8399971,354
United States304452237
Brazil71.3108413
India14381.5157
Germany74.114223.8
Japan96.711.579.5