Groups within groups / Nested treemap
Nested treemap
Use a nested treemap to show a two-level hierarchy by size: groups as bordered boxes, their members as tiles inside.
Pro · not released yet · Groups within groups · Not recommended for mobile
The US and China together make 43% of the world's GDP
Gross domestic product by country, 2024, current US dollars; boxed by continent
Each box is a continent and each tile a country, its area its GDP; faded tiles fold the economies under $100 billion together.
On phones: best on a wider screen (On a phone labels are hard to read or overlap (checked by eye)). Video formats: best kept to the page.
Motion: Continent boxes appear one by one, then their countries pour into them from the top, biggest first.
Sound: A soft pop on hover, pitched by continent. Quiet while it draws and between steps; mute it from its card. Sound is off until the viewer turns it on.
Source: GDP (current US$), NY.GDP.MKTP.CD; continents from Our World in Data, World Bank World Development Indicators (CC BY 4.0), retrieved 2026-12-01. Shares are of the World Bank's world total; a few economies with no 2024 figure are missing, so the tiles add to 99%.
Data
Year: 2024 · World bn: 111,669
| Country | Continent | Usd |
|---|---|---|
| United States | North America | 29,298 |
| China | Asia | 18,730 |
| Germany | Europe | 4,686 |
| Japan | Asia | 4,190 |
| India | Asia | 3,761 |
| United Kingdom | Europe | 3,696 |
| France | Europe | 3,160 |
| Italy | Europe | 2,383 |
| Canada | North America | 2,270 |
| Russia | Europe | 2,187 |
| Brazil | South America | 2,186 |
| South Korea | Asia | 1,875 |
| Mexico | North America | 1,831 |
| Australia | Oceania | 1,757 |
| Spain | Europe | 1,726 |
| Indonesia | Asia | 1,396 |
| Türkiye | Asia | 1,359 |
| Saudi Arabia | Asia | 1,254 |
| Netherlands | Europe | 1,214 |
| Switzerland | Europe | 970 |
| Poland | Europe | 918 |
| Belgium | Europe | 671 |
| Argentina | South America | 638 |
| Ireland | Europe | 609 |
| Sweden | Europe | 605 |
| Singapore | Asia | 573 |
| United Arab Emirates | Asia | 552 |
| Israel | Asia | 542 |
| Austria | Europe | 535 |
| Thailand | Asia | 529 |
| Norway | Europe | 501 |
| Vietnam | Asia | 476 |
| Iran | Asia | 475 |
| Philippines | Asia | 462 |
| Bangladesh | Asia | 450 |
| Denmark | Europe | 425 |
| Malaysia | Asia | 422 |
| Colombia | South America | 421 |
| Hong Kong | Asia | 408 |
| South Africa | Africa | 401 |
| Egypt | Africa | 389 |
| Romania | Europe | 383 |
| Pakistan | Asia | 372 |
| Czechia | Europe | 347 |
| Chile | South America | 329 |
| Portugal | Europe | 314 |
| Finland | Europe | 299 |
| Peru | South America | 292 |
| Kazakhstan | Asia | 292 |
| Iraq | Asia | 280 |
| Algeria | Africa | 269 |
| New Zealand | Oceania | 262 |
| Greece | Europe | 256 |
| Nigeria | Africa | 252 |
| Hungary | Europe | 223 |
| Qatar | Asia | 216 |
| Ukraine | Europe | 191 |
| Kuwait | Asia | 161 |
| Morocco | Africa | 161 |
| Ethiopia | Africa | 150 |
| Slovakia | Europe | 141 |
| Puerto Rico (US) | North America | 126 |
| Dominican Republic | North America | 124 |
| Ecuador | South America | 124 |
| Uzbekistan | Asia | 121 |
| Venezuela | South America | 121 |
| Kenya | Africa | 120 |
| Bulgaria | Europe | 113 |
| Guatemala | North America | 113 |
| Oman | Asia | 107 |
| Angola | Africa | 103 |
| 22 smaller economies | Asia | 758 |
| 23 smaller economies | North America | 411 |
| 20 smaller economies | Europe | 825 |
| 44 smaller economies | Africa | 1,056 |
| 5 smaller economies | South America | 211 |
| 14 smaller economies | Oceania | 58 |