Find a course

Module 2: Choosing the Right ChartLesson 5 of 1113 min

Parts, Distributions and Relationships

Choose charts for part-to-whole, distribution and relationship questions: pies and stacked bars, histograms and box plots, and scatter plots.

Step 1 of 11Learn

Part to whole: the honest case for pies

Pie charts have a bad reputation among data people, and also a stubborn popularity with everyone else. Both are partly deserved.

A pie shows how a whole divides into parts. Its strength is that everyone immediately understands "this is 100%, and here are the shares." Its weakness is that it asks readers to compare angles and areas, which people judge less accurately than lengths. Two slices of 23% and 27% look almost identical, and comparing slices across two pies is very hard.

Use a pie only when all of these are true:

  • The parts really add up to a meaningful whole (100%).
  • There are few parts, ideally two to five.
  • The message is about one or two big shares ("almost half of tickets come from email"), not precise comparisons.

To read slices: each one's angle is its share times 360 degrees, so 25% is a quarter turn of 90 degrees and 50% is a half circle. Start the largest slice at twelve o'clock and order the others clockwise by size, unless a natural order exists.

When there are many parts, close values, or several wholes to compare, use a sorted bar chart of shares or a 100% stacked bar. Donut charts have the same strengths and weaknesses as pies. Treemaps, nested rectangles sized by value, can show many parts and hierarchy, but they depend on area judgments and suit exploration better than precise comparison.

Step 2 of 11Practice · Work it out

In a pie chart, what angle in degrees does a slice representing 15% of the total take up?

Step 3 of 11Learn

Distributions: histograms

Averages hide variety. The average delivery time might be 3 days, but are most deliveries close to 3 days, or do half arrive in 1 day and a quarter take a week? To see how values are spread, you need a distribution chart.

A histogram divides a numeric variable into equal-width ranges, called bins, and draws a bar for how many values fall into each. Unlike a bar chart, the bars touch, because the bins are adjacent parts of a continuous scale.

A histogram shows:

  • the center, where most values sit;
  • the spread, how wide the range is;
  • the shape: symmetric, skewed with a long tail to one side, or with two peaks (bimodal), which often means two different groups are mixed together;
  • outliers and gaps, including data errors like ages of 150.

Bin width matters. Too few bins blur everything into a couple of blocks; too many make a noisy comb. A common starting point is Sturges' rule: number of bins ≈ log2(n) + 1, where n is the number of values. For 100 values, log2(100) ≈ 6.6, so about 8 bins. Another quick rule is the square root of n. Treat these as starting points and try a few widths; the true shape should stay visible across reasonable choices.

Income, house prices, response times and order values are usually right-skewed: most values are modest, with a long tail of large ones. For skewed data, the median often describes a typical value better than the mean.

Step 4 of 11Practice · Chart

Delivery times: the average hides the spread

Tap the most common delivery time.

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

Delivery times: the average hides the spreadBar chart with 7 categories: 1 day: 300; 2 days: 220; 3 days: 150; 4 days: 100; 5 days: 80; 6 days: 60; 7+ days: 90.0100200300Number of orders1 day2 days3 days4 days5 days6 days7+ days300220150100806090
Illustrative data: about 3 days on average, yet the most common time is 1 day and a long tail waits a week or more.
Delivery times: the average hides the spread
ItemOrders
1 day300
2 days220
3 days150
4 days100
5 days80
6 days60
7+ days90

Step 5 of 11Try the calculator

Starting number of histogram bins

Two common rules of thumb for a first histogram. Try a few values of n and compare the suggestions.

Sturges' rule: log2(n) + 1, rounded up
10
Square-root rule, rounded up
23

Step 6 of 11Practice · True or false

A histogram is just a bar chart with the gaps removed, so the two can be used interchangeably.

Step 7 of 11Tap to reveal

Box plots in five parts

  1. The box

    The box spans the middle 50% of values, from the first quartile (25th percentile) to the third quartile (75th percentile). Its length is the interquartile range, a measure of spread that ignores extreme values.

  2. The median line

    A line inside the box marks the median: half the values are below it and half above. If the median sits near one end of the box, the data is skewed.

  3. The whiskers

    Lines extend from the box toward the lowest and highest values that aren't outliers, commonly up to 1.5 times the interquartile range beyond the box.

  4. Outlier points

    Values beyond the whiskers are drawn as individual dots, flagging unusual cases that might be errors or important exceptions worth investigating.

  5. When to use them

    Box plots shine when comparing distributions across several groups side by side, such as delivery times for five warehouses. For a single group and a general audience, a histogram is usually easier to understand.

Step 8 of 11Learn

Relationships: scatter plots

When you want to know whether two numeric variables move together, such as advertising spend and sales, or hours of training and error rates, use a scatter plot. Each point is one case, such as a campaign or an employee, placed by its value on the horizontal axis (x) and the vertical axis (y).

Read a scatter plot for:

  • Direction: points rising to the right suggest a positive relationship; falling, a negative one.
  • Strength: a tight band means a strong relationship; a loose cloud, a weak one. The correlation coefficient, r, summarizes linear strength from −1 to +1, but as Anscombe showed, always look at the plot too.
  • Form: straight, curved or leveling off. Ad spend often shows diminishing returns: sales rise quickly at first and then flatten.
  • Clusters and outliers: separate groups or unusual points often matter more than the overall trend.

Conventionally, put the variable you think influences the other on the x-axis. Add a trend line only if it fits the form, and label notable points directly.

The big warning: correlation is not causation. Ice cream sales and drowning incidents rise together because both increase in hot weather. A scatter plot can show that two things move together; it cannot show why. Before claiming one causes the other, look for confounding factors, reverse causation and coincidence, and remember that experiments are the strongest evidence.

Step 9 of 11Practice · Chart

Ad spend and sales across eight campaigns

Tap the campaign that breaks the pattern.

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

Ad spend and sales across eight campaignsScatter plot with 8 points: A: Ad spend ($ thousands) 5, Sales ($ thousands) 30; B: Ad spend ($ thousands) 8, Sales ($ thousands) 42; C: Ad spend ($ thousands) 10, Sales ($ thousands) 48; D: Ad spend ($ thousands) 12, Sales ($ thousands) 55; E: Ad spend ($ thousands) 15, Sales ($ thousands) 20; F: Ad spend ($ thousands) 18, Sales ($ thousands) 75; G: Ad spend ($ thousands) 20, Sales ($ thousands) 82; H: Ad spend ($ thousands) 24, Sales ($ thousands) 95.0204060801000510152025Sales ($ thousands)Ad spend ($ thousands)ABCDEFGH
Illustrative data.
Ad spend and sales across eight campaigns
PointAd spend ($ thousands)Sales ($ thousands)
A530
B842
C1048
D1255
E1520
F1875
G2082
H2495

Step 10 of 11Practice · Match the pairs

Match each question to the chart that answers it best.

Tap an answer, then tap the place where it belongs (or drag it there).

  1. How are 2,000 order values spread, and are there extreme orders?
  2. How do delivery-time distributions compare across six warehouses?
  3. Do sales reps who make more calls close more deals?
  4. What share of 3 customer segments make up total revenue?

Step 11 of 11Practice · Choose one

A scatter plot of 40 stores shows that stores with more staff have higher sales. A manager concludes, "Hiring more staff will increase sales." What is the main problem with this conclusion?