Segmented bar chart

By Jude Wallis · Updated

A segmented bar chart stacks one bar per group, splitting each bar to show how that group divides across a second categorical variable.

A segmented bar chart draws one bar per category of the first variable and cuts each bar into pieces showing how that group splits across the second variable. The segments of a single bar are that group's conditional distribution, so within any one bar they account for the whole group. When each bar is rescaled to a common height of 100 percent, every bar's segments sum to 1, and only then can segment sizes be compared from bar to bar.

Take 200 students classified by year and by how they get to school. Among the 120 freshmen, 48 walk, 30 take the bus and 42 drive, giving segment heights of 48/120=0.4048 / 120 = 0.40, 0.250.25 and 0.350.35. Among the 80 seniors, 16 walk, 32 take the bus and 32 drive, giving 0.200.20, 0.400.40 and 0.400.40.

Now the misreading, which is about counts rather than about the chart: "42 freshmen drive and only 32 seniors do, so driving is more common among freshmen." The two groups are not the same size. As shares of their own year the numbers are 42/120=0.3542 / 120 = 0.35 and 32/80=0.4032 / 80 = 0.40, so driving is in fact the more common choice among seniors. Dividing each group by its own total before drawing is exactly what the 100 percent version of this chart does, and it is the whole reason to draw one.

Only the bottom segment of each bar rests on a common baseline. Middle segments float, so a small difference three segments up is genuinely hard to see, and that is a real limit of the display rather than a reading error. Bars that split in identical proportions show no association in the sample, which on its own says nothing about the population.

Topic 2.1 of the Fall 2026 course covers two-way tables together with side-by-side and segmented bar charts and mosaic plots.

Where this comes up

More graphs and displays terms, or browse the full statistics glossary.