Skip to content

Never draw bars on a logarithmic scale

badscales and axesmechanicalWilke 2019 p. 213Few 2012 p. 235

How do country populations compare across orders of magnitude without distorting bar length?

Plotly Express Gapminder dataset, eight country populations in 2007 spanning four orders of magnitude.

“Bars on a logarithmic scale violate the principle of proportional ink because bar length depends on an arbitrary lower cutoff”

Claus O. Wilke, "Fundamentals of Data Visualization", p. 212.

Also covered in Wilke 2019 (17 The Principle of Proportional Ink, p. 213), Few 2012 (10 COMPONENT-LEVEL GRAPH DESIGN, p. 235).

CVD preview

Before

Horizontal bars on a logarithmic axis make China look less than twice as long as Sweden even though China has 146 times as many residents.

Download before Python code

After

Point markers on a logarithmic scale encode each population strictly by position along the axis without misleading bar lengths.

Download after Python code

Values

Populations span from 301,931 in Iceland to 1.32 billion in China.

Each decade along the horizontal axis marks a tenfold jump from Iceland (302k) through Germany (82.4M) to China (1,318.7M).

Values used in both charts
CountryPopulation (2007)
Iceland301,931
Norway4,627,926
Sweden9,031,088
Spain40,448,191
Germany82,400,996
Japan127,467,972
United States301,139,947
China1,318,683,096