Limit discrete categorical colors
Back to the Chart galleryxpd charts
Which continents dominate the top 10 countries by GDP per capita?
Plotly Express Gapminder dataset, top 10 countries by GDP per capita in 2007.
“Use direct labeling instead of colors when you need to distinguish between more than about eight categorical items”
Also covered in Knaflic 2015 (4 focus your audience's attention, p. 97), Few 2012 (10 COMPONENT-LEVEL GRAPH DESIGN, p. 246), Few 2012 (10 COMPONENT-LEVEL GRAPH DESIGN, p. 247), Few 2012 (5 VISUAL PERCEPTION AND GRAPHICAL COMMUNICATION, p. 75), Munzner 2014 (10 Map Color and Other Channels, p. 226), Munzner 2014 (10 Map Color and Other Channels, p. 228), Munzner 2014 (10 Map Color and Other Channels, p. 229).
Before
Interactive chart unavailable.
After
Interactive chart unavailable.
Values
Norway leads at 49,357 USD, followed by Kuwait at 47,307 USD and Singapore at 47,143 USD.
| Country | Continent | GDP per capita (USD) |
|---|---|---|
| Norway | Europe | 49357 |
| Kuwait | Asia | 47307 |
| Singapore | Asia | 47143 |
| United States | Americas | 42952 |
| Ireland | Europe | 40676 |
| Hong Kong, China | Asia | 39725 |
| Switzerland | Europe | 37506 |
| Netherlands | Europe | 36798 |
| Canada | Americas | 36319 |
| Iceland | Europe | 36181 |