Field note · June 1, 2025

world-indicators.region: 5 values, 70.0% in the top three

5 values with 26.7% concentrated in one of them, and what that does to every chart downstream.

1 min read ·Visualization ·visualization practice

Distribution of region on world-indicators, because every chart built on it inherits this shape.

  • Europe — 192 rows, 26.7%
  • Asia — 168 rows, 23.3%
  • Africa — 144 rows, 20.0%
  • Americas — 144 rows, 20.0%
  • Oceania — 72 rows, 10.0%

The top three take 70.0% between them. With only 5 values there is no tail to worry about, which makes this a genuinely easy column to chart.

sql
select region,
       count(*)                                      as rows,
       round(100.0 * count(*) / sum(count(*)) over (), 1) as pct,
       round(avg(gdp_per_capita_usd)::numeric, 2)             as avg_gdp_per_capita_usd
from world_indicators
group by 1
order by rows desc;

The second column is the one that matters. Share of rows tells you what is common; avg_gdp_per_capita_usd tells you whether the common thing is the important thing. They disagree more often than not, and a chart that shows only the first is answering the easier question.

Decide what happens to the tail before you plot it. "Other" as an explicit bucket is honest; twelve slivers is not, and neither is silently taking the top eight.