Skip to content

Choosing how to encode a number

Start from the question, then choose the encoding people read most accurately.

Introductory ~9 min7 steps

You will be able to

  • Rank visual encodings by how accurately people read them
  • Choose a chart from the question you are asking
  • Use the Charts gallery to find a chart by question
01

What are you asking?

Read

A chart answers a question. "How is this distributed?", "which group is bigger?", "how did it change?" and "are these related?" each lead to different charts.

The Charts page in the sidebar groups every recipe by the question it answers. Each recipe opens with that question at the top.

02

Which reads best?

Predict

Predict first

You must compare values across five groups as exactly as possible. Which encoding do people read most accurately?

Position along a common axisAngle in a pieColor shade
Reveal

The answer: Position along a common axis

Position along a common axis. Cleveland and McGill's experiments rank the encodings roughly as: position, then length, then angle and slope, then area, and last color. Their rank tells you what to use for the comparison that matters most.

03

The same numbers, twice

Explore

Here are a dot plot and a pie. Try to rank three similar slices from the pie, then compare with how fast you can rank the dots.

Cleveland dot plotHow do categories compare on one value — and across up to three groups?
View data
countrylife_expectancysex
Japan83.300Male
Japan85.300Female
Japan82.600Male
Japan89.100Female
Japan81.200Male
Japan89.100Female
Japan83.500Male
Japan85.700Female
Japan79.900Male
Japan87.400Female
Japan83.800Male
Japan89.500Female
Japan80.600Male
Japan86.500Female
Japan84.200Male
Japan87.600Female
Japan82.100Male
Japan87.600Female
Japan82.800Male
Japan88.500Female
Japan83.800Male
Japan87.400Female
Japan83.400Male
Japan86.300Female
Japan81.900Male
Japan86.700Female
Japan80.800Male
Japan87.100Female
Japan81.500Male
Japan86.700Female
Japan81.100Male
Japan86Female
Japan83.900Male
Japan87.900Female
Japan81.300Male
Japan87.200Female
Japan81.300Male
Japan85.200Female
Japan85.100Male
Japan85.500Female
Spain78Male
Spain86.200Female
Spain80.800Male
Spain86.400Female
Spain81.100Male
Spain85.200Female
Spain82Male
Spain85.500Female
Spain80.700Male
Spain86.700Female
Spain83Male
Spain86.700Female
Spain77.900Male
Spain85.800Female
Spain82.300Male
Spain85.700Female
Spain81.100Male
Spain89.200Female
Spain81.800Male
Spain87.400Female

First 60 of 480 rows.

Pie / donutWhat share of the whole does each of a few categories hold?
View data
browser
Safari
Firefox
Safari
Chrome
Chrome
Chrome
Safari
Opera
Chrome
Safari
Samsung Internet
Firefox
Safari
Chrome
Chrome
Chrome
Edge
Safari
Chrome
Edge
Firefox
Chrome
Firefox
Chrome
Safari
Safari
Edge
Chrome
Firefox
Chrome
Firefox
Chrome
Chrome
Chrome
Safari
Edge
Opera
Edge
Safari
Firefox
Safari
Samsung Internet
Chrome
Opera
Edge
Firefox
Chrome
Chrome
Chrome
Safari
Chrome
Chrome
Safari
Safari
Chrome
Chrome
Chrome
Chrome
Safari
Chrome

First 60 of 2000 rows.

Open each in Charts, and use Compare to see two charts side by side on the same page.

04

A rule of thumb

Read

Give your main comparison the best channel available:

  • Position for the thing you want read exactly.
  • Length for totals from a common baseline.
  • Color for groups, not for precise amounts.
  • Size only for rough magnitude.
05

Sometimes a table wins

Reflect

A chart shows patterns. A table gives exact values. If your reader needs to look up individual numbers, use a table, or add a small table underneath.

Think of the last chart you made. What did you want the reader to compare? Was that comparison on a common axis?

06

Check your understanding

Checkpoint

Check yourself

You want readers to compare the market share of eight brands precisely. Which chart should you use?

Show the answer

Answer: a

Eight angles or bubble sizes are hard to rank. A common axis turns the comparison into reading positions.

Check yourself

What is color best used for in a chart?

Show the answer

Answer: b

People read amounts from color poorly. Color is good at telling things apart and drawing attention.

07

Recap

Recap
  • Start from the question, not from a chart type.
  • Put the comparison that matters on a common axis.
  • Use color for identity and size for rough magnitude, and don't be afraid of a table.

Concepts in this lesson