Shares of a total / Stacked bars

Stacked bars

Use stacked bars to compare totals across items and see what each total is made of, with a switch to compare the mix instead.

Free (MIT) · Shares of a total · Adapts to mobile

The US and China tied on gold at Paris 2024, but the US won 35 more medals

Paris 2024 Olympic medals, top 12 nations by golds, count of medals

Each bar is one nation's medals stacked gold, silver, bronze; switch to % to compare the mix rather than the haul.

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: Gold segments grow first, then silver, then bronze; toggles and the % switch restack the bars smoothly.

Sound: A chime on toggles; a whoosh on the % switch; 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: 2024 Summer Olympics medal table, Wikipedia (CC BY-SA 4.0), retrieved 2026-12-01. Ordered as the official table: by golds, then silvers. Twelve of the 92 teams (NOCs) that won at least one medal.

Data

The US and China tied on gold at Paris 2024, but the US won 35 more medals. Source: Wikipedia, 2024 Summer Olympics medal table
CountryGoldSilverBronzeCode
United States404442USA
China402724CHN
Japan201213JPN
Australia181916AUS
France162622FRA
Netherlands15712NED
Great Britain142229GBR
South Korea13910KOR
Italy121315ITA
Germany12138GER
New Zealand1073NZL
Canada9711CAN