Segmented
Bar Charts
Learn to represent categorical data using segmented bar charts and interpret comparisons between groups.
What Is Categorical Data?
Data falls into two broad types. Categorical data places each observation into a group or category: favorite color, grade level, yes/no responses. Numerical data measures quantities: height, temperature, test scores.
Starting Point: Two-Way Tables
Before building a segmented bar chart, we organize categorical data into a two-way frequency table. Each cell shows the count for a combination of two categories.
| Prefers Dogs | Prefers Cats | Total | |
|---|---|---|---|
| 9th Grade | 45 | 30 | 75 |
| 10th Grade | 50 | 25 | 75 |
| Total | 95 | 55 | 150 |
What Is a Segmented Bar Chart?
A segmented bar chart (also called a stacked bar chart) divides each bar into colored segments. Each segment represents a sub-category, and the full bar represents one group.
Counts vs. Relative Frequencies
Segmented bar charts come in two flavors depending on what the bar heights represent:
The \(100%\) Segmented Bar Chart
When every bar is scaled to \(100%\), it is called a \(100%\) segmented bar chart. This is the best tool for comparing proportions across groups of different sizes.
Segmented vs. Side-by-Side Bar Charts
Both chart types display two categorical variables, but they organize segments differently.
| Feature | Segmented (Stacked) | Side-by-Side |
|---|---|---|
| Bar structure | Segments stacked into one bar per group | Separate bars placed next to each other |
| Best for | Comparing proportions within groups | Comparing exact counts of sub-categories |
| Group totals | Easy to read (bar height = total) | Harder: must add bars mentally |
| Sub-category comparison | Middle segments can be hard to compare | Easy: all start at same baseline |
How to Build a Segmented Bar Chart
Example 1: Transportation Survey
A school surveyed students on how they get to school. Build a \(100%\) segmented bar chart from this table:
| Bus | Car | Walk | Total | |
|---|---|---|---|---|
| Freshmen | 40 | 30 | 10 | 80 |
| Seniors | 15 | 35 | 10 | 60 |
Example 1: The Chart
Example 2: Unequal Group Sizes
A gym asked members whether they prefer morning or evening workouts. Notice the unequal group sizes:
| Morning | Evening | Total | |
|---|---|---|---|
| Under 30 | 20 | 60 | 80 |
| 30 and Over | 90 | 30 | 120 |
Example 2: Comparing Proportions
Example 3: Three Groups
A survey asks three classes about their favorite genre. Build and interpret a \(100%\) segmented bar chart.
| Action | Comedy | Drama | Total | |
|---|---|---|---|---|
| Class A | 12 | 18 | 10 | 40 |
| Class B | 20 | 10 | 20 | 50 |
| Class C | 6 | 24 | 0 | 30 |
Example 3: Visualized
Common Mistakes
Summary: Choosing the Right Chart
| Chart Type | Best For | Key Feature |
|---|---|---|
| Segmented Bar (Frequency) | Showing raw counts per group | Bars may differ in height |
| \(100%\) Segmented Bar | Comparing proportions across groups | All bars are the same height |
| Side-by-Side Bar | Comparing exact sub-category values | All sub-bars share a baseline |
| Pie Chart | Part-to-whole for a single group | One circle = one group |
Question 1 of 5
What is the main advantage of a \(100%\) segmented bar chart over a regular (frequency) segmented bar chart?
Question 2 of 5
In a two-way table, \(60\) out of \(200\) students in Group X chose "Yes." What percentage does this segment represent in a \(100%\) segmented bar chart?
Question 3 of 5
A \(100%\) segmented bar chart shows that Group A has a \(40%\) blue segment and Group B has a \(55%\) blue segment. Which conclusion is valid?
Question 4 of 5
When is a side-by-side bar chart more appropriate than a segmented bar chart?
Question 5 of 5
A researcher surveys \(100\) city residents and \(50\) rural residents about their preferred news source. The results are:
City: TV \(= 35\), Online \(= 45\), Print \(= 20\)
Rural: TV \(= 25\), Online \(= 10\), Print \(= 15\)
The researcher builds a \(100%\) segmented bar chart.
What percentage of the rural bar is the "Online" segment?