Segmented
Bar Charts
Learn to build and interpret segmented bar charts that reveal categorical associations between two variables at a glance.
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 10 | 30 | 40 | 30 | 100 |
| Grade 11 | 20 | 50 | 30 | 100 |
Visualizing the Proportions
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.
Interpreting Associations
The key question: Is the distribution of the response variable the same across all groups?
Segmented vs. Side-by-Side
| Segmented Bar | Side-by-Side Bar | |
|---|---|---|
| Structure | Stacked to \(100\%\) | Bars placed next to each other |
| Best for | Comparing proportions | Comparing exact values |
| Total visible? | Always \(100\%\) | Shows raw counts |
| Association? | Easy: compare segment heights | Harder: must compare bar groups |
| Limitation | Hard to compare middle segments | Hard to see part-to-whole |
How to Build a Segmented Bar Chart
Example 1: Device Preference
A survey asked 300 people which device they primarily use, grouped by age:
| Phone | Laptop | Tablet | Total | |
|---|---|---|---|---|
| Teen | 60 | 20 | 20 | 100 |
| Adult | 40 | 40 | 20 | 100 |
| Senior | 20 | 30 | 50 | 100 |
Example 1: The Chart
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-Study | 45 | 30 | 75 |
| Tutored | 100 | 25 | 125 |
Example 2: Interpreting the Result
Example 3: No Association
A survey asks about pet preference by gender. Here are the percentages:
Common Mistakes to Avoid
Summary of Key Concepts
| Concept | Key Detail |
|---|---|
| Purpose | Compare categorical distributions across groups |
| Data Source | Two-way (contingency) table |
| Y-Axis | Always \(0\%\) to \(100\%\) |
| No Association | Bars look nearly identical |
| Association | Segment proportions differ across bars |
| Advantage | Normalizes unequal group sizes |
| Limitation | Middle 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
A researcher surveys 400 employees at two companies about their commute method. The segmented bar chart shows:
Company A: Drive \(70\%\), Transit \(20\%\), Bike \(10\%\)
Company B: Drive \(40\%\), Transit \(35\%\), Bike \(25\%\)
Based on this chart, which statement is best supported?