Find a course

Module 1: Why Visualize DataLesson 1 of 1111 min

Why Charts Work

See why identical statistics can hide very different data, which visual encodings the eye reads most accurately, and what makes a chart effective.

Step 1 of 12Learn

Four datasets, one set of statistics

In 1973 the statistician Francis Anscombe published four small datasets, each with eleven pairs of x and y values. On paper they look identical. In every one, the average of x is 9, the average of y is about 7.5, the correlation between x and y is about 0.82, and the best-fit line is roughly y = 3 + 0.5x. If you only read the summary table, you'd conclude the four datasets tell the same story.

Plot them and the illusion collapses. The first is a loose upward cloud, the pattern you'd expect. The second is a smooth curve, so a straight line is the wrong model entirely. The third is a perfect straight line with one outlier dragging the fit off course. In the fourth, every point but one sits at the same x value; a single extreme point creates the whole "relationship."

This set, now called Anscombe's quartet, makes the case for visualization better than any argument. Summary statistics compress data, and compression throws information away. A chart shows the shape: curves, clusters, gaps, outliers and errors that averages hide.

That's the first job of visualization: helping you understand the data before you draw conclusions. The second job, communicating what you found to others, is what most of this course is about. Both start with the same idea: the eye spots patterns that tables conceal.

Step 2 of 12Chart

Anscombe's dataset I: a loose straight line

Anscombe's dataset I: a loose straight lineScatter plot with 11 points: x=4: x 4, y 4.26; x=5: x 5, y 5.68; x=6: x 6, y 7.24; x=7: x 7, y 4.82; x=8: x 8, y 6.95; x=9: x 9, y 8.81; x=10: x 10, y 8.04; x=11: x 11, y 8.33; x=12: x 12, y 10.84; x=13: x 13, y 7.58; x=14: x 14, y 9.96.051015246810121416yx
Anscombe (1973). Mean of y about 7.5, correlation about 0.82, the same as the other three datasets.
Anscombe's dataset I: a loose straight line
Pointxy
x=444.26
x=555.68
x=667.24
x=774.82
x=886.95
x=998.81
x=10108.04
x=11118.33
x=121210.84
x=13137.58
x=14149.96

Step 3 of 12Practice · True or false

If two datasets have the same mean, correlation and best-fit line, a chart of each will look essentially the same.

Step 4 of 12Practice · Chart

Anscombe's dataset III: same statistics, different story

Tap the single point that makes this dataset's statistics match dataset I.

Tap the point that answers the question, then press Check.

Anscombe's dataset III: same statistics, different storyScatter plot with 11 points: x=4: x 4, y 5.39; x=5: x 5, y 5.73; x=6: x 6, y 6.08; x=7: x 7, y 6.42; x=8: x 8, y 6.77; x=9: x 9, y 7.11; x=10: x 10, y 7.46; x=11: x 11, y 7.81; x=12: x 12, y 8.15; x=13: x 13, y 12.74; x=14: x 14, y 8.84.051015246810121416yx
Anscombe (1973). Ten points lie on an almost perfect line; one point pulls the statistics.
Anscombe's dataset III: same statistics, different story
Pointxy
x=445.39
x=555.73
x=666.08
x=776.42
x=886.77
x=997.11
x=10107.46
x=11117.81
x=12128.15
x=131312.74
x=14148.84

Step 5 of 12Learn

What the eye sees before you think

Look at a page of numbers and find every 7. You have to scan digit by digit. Now imagine every 7 is printed in bright orange. You find them instantly, without scanning. Properties like color, size, orientation and position are preattentive attributes: the visual system processes them in a fraction of a second, before conscious attention.

Charts work by turning numbers into these visual properties. A data value becomes the position of a dot, the length of a bar, the angle of a slice or the darkness of a color. This mapping is called a visual encoding, and the choice matters, because people don't read every encoding equally well.

In classic experiments in the 1980s, researchers William Cleveland and Robert McGill asked people to judge proportions shown in different ways. Accuracy followed a clear ranking, from best to worst:

  1. Position on a common scale (dots or bar ends along the same axis)
  2. Position on separate but identical scales (small multiples)
  3. Length (bars)
  4. Angle and slope (pie slices, line steepness)
  5. Area (bubbles, treemaps)
  6. Volume, color saturation and shading

That ranking explains a lot of practical advice. Bar and dot charts are accurate because they use position and length. Pies and bubbles are harder because they rely on angle and area. Color is great for grouping and highlighting, but poor for reading exact values.

Step 6 of 12Practice · Put in order

Order these visual encodings from most to least accurately judged, based on the perception ranking.

Drag the items, or use the arrow buttons, to put them in order.

  1. Area
  2. Color saturation
  3. Angle
  4. Position on a common scale
  5. Length

Step 7 of 12Practice · Diagram

How accurately people judge each encoding

A bubble chart relies mainly on which encoding?

Tap the shape that answers the question, then press Check.

How accurately people judge each encodingLayer diagram: Position on a common scale, Length, Angle, Area, Color saturation.Position on a common scaleLengthAngleAreaColor saturation
Most accurate at the top, least at the bottom, after the classic perception studies of Cleveland and McGill.
Position on a common scale

Dot plots, scatter plots, bar ends. The most accurate.

Length

Bars from a shared zero baseline.

Angle

Pie and donut slices.

Area

Bubbles and treemaps; differences get underestimated.

Color saturation

Heat maps: good for patterns, poor for exact values.

Step 8 of 12Note

Step 9 of 12Learn

Explore versus explain

There are two very different reasons to make a chart, and mixing them up is behind many bad charts.

Exploratory charts are for you. You make dozens of them quickly while trying to understand the data: plotting every variable, looking for outliers, checking whether a pattern holds for each region. They can be rough, unlabeled and ugly. Their job is to help you find the story, including the boring finding that there is no story.

Explanatory charts are for an audience. You make a few, carefully. Each has one main message, a clear title, labeled axes, only the data needed to make the point and visual emphasis that directs attention. Their job is to transfer what you learned to someone else, quickly and accurately.

The common mistake is presenting exploratory charts to an audience: a dashboard of 14 unlabeled graphs, a slide showing every product line in a different color, a chart the analyst understands only because they built it. The opposite mistake is skipping exploration: polishing the first chart you made without checking whether the data supports it.

A useful habit: before making an explanatory chart, write one sentence describing what the reader should take away. If you can't write the sentence, you're still exploring.

Step 10 of 12Practice · Sort into groups

Sort these charts by their likely purpose.

Tap an item, then tap its group (or drag it there).

Step 11 of 12Learn

What makes a chart effective

Across all chart types, effective explanatory charts share a few qualities.

They answer a question. "How did each region perform against target?" leads to a better chart than "show the regional data." The question decides what to compare, which determines the chart type.

They use accurate encodings for the main comparison. Put the comparison that matters most on a common position scale, for example bars side by side on the same axis, and use color or size only for secondary information.

They show enough context. A number alone, such as "Churn: 4.2%", means little. Compared with last quarter, the target or the industry range, it becomes information.

They are honest. Axes, scales and selections don't exaggerate or hide effects. A reader who looked at the underlying table would reach the same conclusion.

They respect the reader's time. Nothing on the chart needs decoding that could be labeled directly. The main point is visible in about five seconds, and details are there for anyone who wants them.

Keep these five qualities in mind: question, encoding, context, honesty and clarity. Each of the following lessons develops one or more of them.

Step 12 of 12Practice · Choose one

A manager wants to compare monthly revenue for five product lines as accurately as possible. Which encoding should carry the main comparison?