Mistake Master
Graphical Representations for One Categorical Variable
The Bar Is 1.58 Times Taller. On Screen It Looks 4.5.
You'll learnto read and build a bar chart for one categorical variable, and to spot the three ways the picture can say something the counts do not.
Four hundred students picked a lunch. Pizza took 152 and salad 96 — a ratio of 1.58 to 1, and a bar chart draws that ratio to scale when the value axis starts at zero. Start that axis at 80 instead and the two bars become 72 and 16 units of ink: pizza now looks four and a half times salad, an exaggeration of 2.84, with every number on the chart still correct. This animation builds the chart, truncates it, then tries to put a multi-select survey into a pie and watches the slices run past a full turn at 187 percent. It finishes on the difference between a bar chart and a histogram, using two sets of twenty scores whose histograms are identical and whose means are five points apart. Twelve short steps; press Next for each one.
Read all 12 steps as text
Four hundred students, one lunch each
Four hundred students each picked one lunch. A bar chart gives every category of the variable its own bar, and the bar's height is the count in that category.
Watch the bars rise. Every student is in exactly one of them, so the four counts add to 400 — the whole group — which is what makes the next beat's percentages possible.
One bar per category, and gaps between
Two features here are structural rather than decorative. The bars are separated, because the categories are nominal and there is nothing between pizza and salad for anything to sit at. And the bars are all the same width, because width carries no information — only height does.
The category order is free. Alphabetical, by frequency, by the order they came in: all correct, none more correct, and nothing is lost by redrawing.
The tallest bar is not a majority
Three things come off this chart directly: the count in each category, the relative frequency — that count over 400 — and the modal category, the one with the most.
Then there is the claim it is easiest to overreach into. Pizza is 152 of 400, which is 38.0%. It is the biggest single choice and 62.0% of the students chose something else. "Most students picked pizza" is a majority claim, and this chart does not support it.
The word to use is modal: the most common single category. It says exactly what the tallest bar earns and no more.
Now start the value axis at 80
Pizza 152, salad 96. With the value axis starting at zero the bars show that ratio to scale: one is a little over half again as tall as the other.
Now start the axis at 80. Nothing is recounted and every bar keeps its true count on top of it. Watch what happens to the ink.
And watch sushi. Its 68 students sit below where the axis now starts, so its bar has nothing left to draw and vanishes entirely.
Every number correct, and the picture still lies
The bars now drawn are 72 units and 16 units of ink — a ratio of 4.50 to 1 where the truth is 1.58 to 1, an exaggeration of 2.84 times.
The reason this works on a reader is that a bar's length is its claim. Length is what the eye compares, and length only means what it appears to mean when it starts at zero. A truncated axis on a bar chart converts a modest difference into a dramatic one while every label stays accurate.
This is not a rule against truncated axes everywhere — on a line chart of small changes over time, a labeled truncation is often the readable choice. It is a rule about bars, because bars invite a ratio.
A pie needs parts that make one whole
A pie chart shows parts of a single whole. Each slice's angle is that category's share of 360°, and the display's whole point is part-to-whole: it is good at "about a third", poor at comparing two similar slices, because angle is much harder to judge than length.
The lunch data pies perfectly — one lunch per student, four shares summing to 100%.
The slices run past a full turn
A different question, same 400 students: which streaming services do you use? Pick all that apply. The counts come back 260, 210, 148 and 130, and they total 748 answers from 400 students — 187.0%.
Watch what the pie does. The slices run past a full turn and start covering the ones underneath, because there is no whole here for them to be parts of.
The fix is not to rescale. Dividing by 748 would answer "what share of answers named Streamly", which nobody asked. Multi-select data is bar chart data.
A bar chart is not a histogram
They look alike, and the place to tell them apart is not the bars. It is the horizontal axis.
A bar chart's axis is a set of category slots — named, unordered, with nothing between them — so the bars have gaps and you can reorder them freely.
A histogram's axis is a number line. Each bar covers an interval of values, so the bars touch: there is always a score between 70 and 80 for a boundary to fall on, and the order is forced by the numbers themselves.
Two different sets of twenty scores
Here is the price of binning, and it is worth seeing rather than being told.
Two sets of twenty test scores. Set A sits low inside every bin — its lowest is 50 — and set B sits high, up to 99. Their means are 72.45 and 77.55, five points apart.
Now watch the second histogram draw, and see whether the picture can tell them apart.
Identical bins, different data
The two histograms have identical bin counts — 2, 4, 7, 5, 2. Not similar: the same five numbers, so the two pictures cannot be told apart.
Their means are 72.45 and 77.55, and their ranges are 50–91 against 58–99. None of that survives into the bars.
So a histogram reports how many values fell in each interval and nothing else. No individual score is recoverable, no mean, no gap inside a bin. Reading a bar as "a student who scored 70" is the error this topic exists to stop.
Side-by-side bars need the right heights
Comparing two groups on one categorical variable calls for side-by-side bars: one pair per category, one color per group. The shape is right.
What the heights measure decides whether it works. If the two groups are different sizes, counts mostly measure the sizes — the bigger group's bar wins every category no matter what its members do. Topic 1.3 runs that case out in full: 300 walkers against 150, and the smaller school walking twice as much.
So for unequal groups the bars have to be relative frequencies, each count over its own group's total. Here there is only one group, so the two charts rank the categories identically — that is what makes it safe, not the shape of the picture.
Check the axis before you read the bars
A bar chart gives each category of one categorical variable a bar whose height is its count. The bars are separated because nothing lies between the categories, they are equal width because width carries nothing, and their order is free. The modal category is the tallest bar and that is all it is.
Three failures, and all three were run rather than described. A truncated axis turned a true ratio of 1.58 into a drawn 4.50 with every label still correct. A pie of multi-select answers summed to 187.0% and ran its slices past a full turn. And two data sets produced identical histograms while their means sat 5.1 points apart.
The sentence to keep: the axis is the tell. It says whether the display is a bar chart or a histogram, and whether its bars can be compared at all.