01 / 20

Segmented
Bar Charts

Learn to build and interpret segmented bar charts that reveal categorical associations between two variables at a glance.

Math 2

What Is a Segmented Bar Chart?

A segmented bar chart (also called a stacked bar chart) divides each bar into colored segments that represent the proportion of each category within a group. Unlike a regular bar chart that shows counts, a segmented bar chart shows how a whole is divided among parts.

From Two-Way Tables to Charts

Segmented bar charts are the visual form of a two-way (contingency) table. Consider a survey of 200 students about their preferred sport, split by grade:

Soccer Basketball Tennis Total
Grade 10304030100
Grade 11205030100

Visualizing the Proportions

\(0\%\)
\(25\%\)
\(50\%\)
\(75\%\)
\(100\%\)
\(30\%\)
\(40\%\)
\(30\%\)
\(20\%\)
\(50\%\)
\(30\%\)
Grade 10 Grade 11 Soccer Basketball Tennis

Why Use Percentages?

When group sizes are unequal, raw counts can be misleading. Converting to conditional percentages lets us compare distributions fairly across groups of different sizes.

Raw Counts
If Group A has 500 people and Group B has 100, raw counts favor the larger group. Comparisons are unfair.
Percentages
Converting to percentages normalizes each bar to \(100\%\), making the distribution shapes directly comparable.

Interpreting Associations

The key question: Is the distribution of the response variable the same across all groups?

No Association
All bars have nearly identical segment proportions. The segments line up horizontally across bars.
Association Present
Segment proportions differ noticeably across bars. The segment boundaries are at different heights.

Segmented vs. Side-by-Side

Segmented Bar Side-by-Side Bar
StructureStacked to \(100\%\)Bars placed next to each other
Best forComparing proportionsComparing exact values
Total visible?Always \(100\%\)Shows raw counts
Association?Easy: compare segment heightsHarder: must compare bar groups
LimitationHard to compare middle segmentsHard to see part-to-whole

How to Build a Segmented Bar Chart

1
Organize data into a two-way table with row and column totals.
2
Compute conditional percentages: divide each cell by its group total, then multiply by \(100\).
3
Draw bars of equal height representing \(100\%\) for each group on the x-axis.
4
Stack segments within each bar using distinct colors for each category. Label percentages.
5
Add a legend and title. Compare segment patterns across bars to assess association.

Example 1: Device Preference

A survey asked 300 people which device they primarily use, grouped by age:

Phone Laptop Tablet Total
Teen602020100
Adult404020100
Senior203050100

Example 1: The Chart

\(0\%\)
\(25\%\)
\(50\%\)
\(75\%\)
\(100\%\)
\(60\%\)
\(20\%\)
\(20\%\)
\(40\%\)
\(40\%\)
\(20\%\)
\(20\%\)
\(30\%\)
\(50\%\)
Teen Adult Senior Phone Laptop Tablet

Example 2: Unequal Groups

A school tracks whether students passed or failed, grouped by study method. Notice the unequal group sizes:

Pass Fail Total
Self-Study453075
Tutored10025125

Example 2: Interpreting the Result

\(0\%\)
\(25\%\)
\(50\%\)
\(75\%\)
\(100\%\)
\(60\%\)
\(40\%\)
\(80\%\)
\(20\%\)
Self-Study Tutored Pass Fail

Example 3: No Association

A survey asks about pet preference by gender. Here are the percentages:

\(0\%\)
\(25\%\)
\(50\%\)
\(75\%\)
\(100\%\)
\(50\%\)
\(30\%\)
\(20\%\)
\(48\%\)
\(32\%\)
\(20\%\)
Male Female Dog Cat Bird

Common Mistakes to Avoid

✕ Using Raw Counts
Comparing raw counts across groups of different sizes leads to misleading conclusions. Always convert to percentages first.
✕ Missing Labels
Forgetting to include a legend, axis labels, or segment percentages makes the chart uninterpretable for readers.
✕ Claiming Causation
An association in a segmented bar chart does not prove one variable causes the other. Correlation is not causation.

Summary of Key Concepts

Concept Key Detail
PurposeCompare categorical distributions across groups
Data SourceTwo-way (contingency) table
Y-AxisAlways \(0\%\) to \(100\%\)
No AssociationBars look nearly identical
AssociationSegment proportions differ across bars
AdvantageNormalizes unequal group sizes
LimitationMiddle segments are harder to compare

Question 1 of 5

In a segmented bar chart, what does each bar always total?

Question 2 of 5

If two segmented bars have nearly identical segment proportions, what can you conclude?

Question 3 of 5

A group of 80 students includes 24 who prefer reading. What is the conditional percentage for reading in this group?

Question 4 of 5

Why is a segmented bar chart preferred over a regular bar chart when comparing groups of different sizes?

Question 5 of 5

Based on this chart, which statement is best supported?