Skip to content

Keep axis labels legible when scaled down

badlayout and typemechanicalWilke 2019 p. 292Cleveland 1994 p. 54Knaflic 2015 p. 158

Can a reader still read country names and axis ticks when the chart shrinks to document width?

Plotly Express Gapminder dataset, six high-income countries in 2007.

“The most common mistake in preparing figures for publication is making axis labels and tick text too small to read once scaled down”

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

Also covered in Wilke 2019 (24 Use Larger Axis Labels, p. 292), Cleveland 1994 (2.2 Clear Vision, p. 54), Knaflic 2015 (6 dissecting model visuals, p. 158).

CVD preview

Before

Setting axis titles and tick labels to 7 px makes the text nearly illegible once placed inside a report or slide deck.

Download before Python code

After

Using 12 px ticks, a 13 px axis title, and direct bar labels keeps every word crisp at full size and when scaled down.

Download after Python code

Values

Life expectancy runs from 78.2 years in the United States to 82.6 years in Japan.

Japan (82.6) and Switzerland (81.7) lead the group, followed by Sweden (80.9), Canada (80.7), Germany (79.4), and the United States (78.2).

Values used in both charts
CountryLife expectancy in 2007 (years)
Japan82.6
Switzerland81.7
Sweden80.9
Canada80.7
Germany79.4
United States78.2