01 / 21

Segmented
Bar Charts

Learn to represent categorical data using segmented bar charts and interpret comparisons between groups.

Math 1

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.

Categorical
Labels or groups: "Red," "Blue," "Green"
Numerical
Measured values: \(72\), \(85.3\), \(100\)

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 Grade453075
10th Grade502575
Total9555150

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.

0 25 50 75 9th Grade 10th Grade Dogs Cats Students

Counts vs. Relative Frequencies

Segmented bar charts come in two flavors depending on what the bar heights represent:

Frequency (Counts)
Each bar's total height equals the group count. Bars may have different heights if groups are different sizes.
Relative Frequency (\(%\))
Each bar is scaled to \(100%\). All bars are the same height, making proportions easy to compare.

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.

0% 25% 50% 75% 100% 60% 40% 66.7% 33.3% 9th Grade 10th Grade Dogs Cats Percentage

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 structureSegments stacked into one bar per groupSeparate bars placed next to each other
Best forComparing proportions within groupsComparing exact counts of sub-categories
Group totalsEasy to read (bar height = total)Harder: must add bars mentally
Sub-category comparisonMiddle segments can be hard to compareEasy: all start at same baseline

How to Build a Segmented Bar Chart

1
Organize your data into a two-way frequency table with row and column totals.
2
Choose your type: frequency (counts) or relative frequency (\(100%\)). For relative frequency, compute each segment as \(\frac{\text{count}}{\text{group total}} \times 100%\).
3
Draw one bar per group on the \(x\)-axis. Stack segments bottom-to-top with distinct colors.
4
Label axes and add a legend so each color is clearly identified.
5
Interpret: Compare segment sizes within a bar (part-to-whole) and across bars (group-to-group).

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
Freshmen40301080
Seniors15351060

Example 1: The Chart

0% 25% 50% 75% 100% 50% 37.5% 12.5% 25% 58.3% 16.7% Freshmen Seniors Bus Car Walk Percentage

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 30206080
30 and Over9030120

Example 2: Comparing Proportions

0% 25% 50% 75% 100% 25% 75% 75% 25% Under 30 30 and Over Morning Evening Percentage

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 A12181040
Class B20102050
Class C624030

Example 3: Visualized

0% 25% 50% 75% 100% 30% 45% 25% 40% 20% 40% 20% 80% Class A Class B Class C Action Comedy Drama Percentage

Common Mistakes

✕ Comparing Counts Across Unequal Groups
If Group A has 200 people and Group B has 50, comparing raw segment heights is misleading. Use a \(100%\) chart instead.
✕ Segments Not Summing to Total
Every bar must sum to the group total (or \(100%\)). Rounding errors can make bars appear slightly off: always double-check.
✕ Missing Legend or Labels
Without a legend, readers cannot tell which color represents which category. Always include clear labels.

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

What percentage of the rural bar is the "Online" segment?