- Foundation
- About 15 min
- 5 practice questions
Stacked bar charts: seeing totals and their parts
Choose how to cluster a column chart, read and build a stacked bar chart, and explain what a stacked chart shows easily (totals) and what it makes harder (comparing the middle pieces).
If something looks wrong, please tell us.
By the end of this lesson you can
- Decide how to group the bars of a cluster column chart for the question being asked.
- Read the value of each piece in a stacked bar as 'end − start', and read the total from the length of the bar.
- Explain when a stacked bar chart is the better choice and what it makes harder to see.
So far we have combined numbers into a single value. Pictures can combine data too. When data is split into groups and categories, the way we draw it decides which questions are easy to answer. This lesson looks at the stacked bar chart.
The data
| Canteen | Snacks | Drinks | Meals | Total |
|---|---|---|---|---|
| P | 1200 | 800 | 2000 | 4000 |
| Q | 900 | 1100 | 1500 | 3500 |
| R | 1500 | 500 | 2500 | 4500 |
Cluster column charts: choosing the cluster
A cluster (grouped) column chart draws a separate bar for every number, with bars grouped side by side. There are two ways to group this data:
Choice 1: cluster by item. Three clusters (Snacks, Drinks, Meals), each with a bar for P, Q and R. This makes it easy to ask 'Which canteen sold the most drinks?' (Q).
Choice 2: cluster by canteen. Three clusters (P, Q, R), each with bars for Snacks, Drinks and Meals. This makes it easy to ask 'What did canteen P sell most of?' (Meals).
But neither choice shows the total for each canteen directly. You have to add the bar heights in your head.
Stacking the bars
In a stacked bar chart, the pieces for one canteen are placed end to end, in the same order every time, forming one long bar. The length of the whole bar is the total; each coloured piece is one part. For canteen P, Snacks runs from 0 to 1200, Drinks from 1200 to 2000, and Meals from 2000 to 4000.
In a stacked bar, value of a piece = where it ends − where it starts. The full length of the bar is the total. Use a stacked chart when the totals matter as well as the parts.
Worked example 1: reading a stacked bar
On a stacked bar chart of the canteen data, canteen R's bar shows Snacks ending at 1500, Drinks ending at 2000 and Meals ending at 4500.
(a) Total sales of R = length of the bar = ₹4500.
(b) Drinks = 2000 − 1500 = ₹500.
(c) Meals = 4500 − 2000 = ₹2500.
(d) Fraction of R's sales from meals = 2500 ÷ 4500 = 5 ÷ 9 ≈ 0.556, about 56%.
(e) Which canteen sold the most overall? Just compare bar lengths: R (4500) is longest, then P (4000), then Q (3500).
Worked example 2: building a stacked bar chart
Students of three sections were asked how they come to school. To draw stacked bars (order: Walk, Cycle, Bus), find where each piece starts and ends by adding as you go.
| Section | Walk | Cycle | Bus | Walk piece | Cycle piece | Bus piece |
|---|---|---|---|---|---|---|
| 9A | 12 | 10 | 18 | 0 to 12 | 12 to 22 | 22 to 40 |
| 9B | 20 | 8 | 7 | 0 to 20 | 20 to 28 | 28 to 35 |
| 9C | 6 | 15 | 24 | 0 to 6 | 6 to 21 | 21 to 45 |
The bars end at 40, 35 and 45, the section totals. From the chart one sees at a glance that 9C is the largest section and 9B the smallest, and that walking is the biggest piece in 9B but the smallest in 9C.
Cluster chart or stacked chart?
-
Cluster column chart
- Every bar starts from 0
- Easy to compare single values within and across clusters
- Totals must be added mentally
-
Stacked bar chart
- Totals visible as bar lengths
- Easy to compare totals and see each part's share
- Middle pieces do not start at 0, so they are harder to compare
What stacking makes harder
Only the first piece of each bar starts at 0. Every other piece starts wherever the previous one ended, and these starting points differ from bar to bar. So 'Did canteen Q sell more drinks than canteen P?' is harder to answer from a stacked chart: the two Drinks pieces start at different places (900 and 1200), and you must estimate two lengths instead of comparing two heights. Choose the chart that suits the question you most need answered.
Key takeaways
- In a cluster chart, the choice of cluster decides which comparisons are easy.
- In a stacked bar, the whole bar is the total and each piece is 'end − start'.
- Stacked bars are best when totals matter as well as their parts.
- Pieces after the first do not start at 0, so comparing them across bars is harder.
Check your understanding
-
1. You want to compare the total spending of four families and also see how each total is made up. Which chart suits this best?
- A single pie chart for all four families together
- A line graph
- A cluster column chart grouped by category
- A stacked bar chart with one bar per family
Show answer
Answer: D. A stacked bar shows each family's total as the length of its bar and the parts as pieces within it. A cluster chart shows the parts but leaves the totals to be added mentally.
-
2. In a stacked bar, the Drinks piece starts at 1500 and ends at 2000. How much does it represent?
- 2000
- 1500
- 500
- 3500
Show answer
Answer: C. The value of a piece is where it ends minus where it starts: 2000 − 1500 = 500. 2000 is only the end position, which includes the pieces before it.
-
3. A family's stacked bar has pieces ending at 1200 (Rent), 2000 (Food) and 4000 (Other). What percentage of the total is Other?
- 50%
- 40%
- 20%
- 30%
Show answer
Answer: A. Other = 4000 − 2000 = 2000, and the total is the full length, 4000. 2000 ÷ 4000 × 100 = 50%.
-
4. Why is it harder to compare the middle pieces of two stacked bars than to compare two bars in a cluster chart?
- Because stacked bars use different colours
- Because the middle pieces do not start from a common baseline
- Because stacked bars do not show totals
- Because stacked bars cannot show more than two parts
Show answer
Answer: B. In a cluster chart every bar starts at 0, so heights can be compared directly. In a stacked bar only the first piece starts at 0; the middle pieces begin at different points, so their lengths must be estimated.
-
5. Using the 'ways of coming to school' table (9A: 12, 10, 18; 9B: 20, 8, 7; 9C: 6, 15, 24), which section has the longest stacked bar?
- 9A, with 40 students
- 9B, with 35 students
- 9C, with 45 students
- All three bars are equal
Show answer
Answer: C. The bar length is the section total: 9A: 12 + 10 + 18 = 40; 9B: 20 + 8 + 7 = 35; 9C: 6 + 15 + 24 = 45. So 9C has the longest bar.
Sign in to keep track of the lessons you finish.