Stacked Bar / Column
Variant: Standard
Made-up data, for demonstration only
Variants
5 types · click one to see it in the frame above- Difference from standard
- The recommended type; use it as a starting point
- Use when
- Compare totals along with their components
Stacked Bar Chart is a bar chart that splits each bar into several coloured segments laid end to end as one bar. Use it to see both the total of each category and what it is made of, such as each region's sales split by channel.
How to read a Stacked Bar Chart
- The categories are on the horizontal axis. In this example they are 5 regions.
- The full height of a bar is the total. The unit is millions of dollars. The South has the highest total (90) and the North the lowest (43).
- Each colour is a segment. See the legend at the top left: in store, online and agents. The height of each colour band is the value of that segment.
- The bottom segment is the easiest to compare across bars, because every bar starts from the same baseline. Segments higher up start at different levels.
This chart answers questions about totals well. Comparing the middle or top segments across regions is harder. See mistake 1 below.
When to use it
- The total matters more than each segment, such as seeing which region sells the most and then which channels it comes from.
- You compare the make-up of several totals in one chart. It works best when the segments differ clearly in size.
- The segments really add up to the same total, such as sales split by channel.
When not to use it
- You need to compare segment values in detail, or across categories. Use a Grouped Bar or a line chart. The further a segment is from the axis, the harder its value is to read.
- There are more than 5 segments per bar. Combine small segments into "Others", or change the chart.
- There is only one bar. Use a Pie Chart or a Bar Chart, where segment sizes are easier to compare.
- The data is rates, or values that do not add up to one total. The segments of a stacked bar must be addable.
- There are negative values. Stacked bars are hard to read and neighbouring colours change with the values. Use small multiples. If you must use it, place negative segments below the zero line and mark the net total with a dot.
- You want to compare shares and do not care about the total. Use a 100% Stacked Bar.
Common mistakes
1. Expecting readers to compare upper segments across categories
A segment that is not at the bottom has no shared baseline, so it is hard to find the longest bar of that colour. The middle segments are the hardest to compare. In this example, try finding the region with the longest "online" band. It is much harder than finding the longest "in store" band at the bottom. If you want to compare one segment across categories, move it to the bottom. See the "Highlight one segment" variant.
2. Stacking too many layers
With more than 5 segments per bar the picture usually gets cluttered. Try the "Too many segments" variant, which has 7 layers. Fix it by combining small segments into "Others".
3. Ordering segments with no reason, or ordering categories alphabetically
Put the most important segment, or the biggest one, next to the axis, and sort the bars by total or by that segment. Do not sort alphabetically, except for categories with a natural order, such as age bands, which must keep that order.
4. Segment colours that are hard to tell apart, with no separator
A thin border between segments in a bar, plus a legend, makes it easier to read, especially for people who cannot see all colours. This example already has a border in the background colour.
Compared with similar charts
| Chart | How it differs | Choose it when |
|---|---|---|
| Stacked Bar | Segments laid end to end in one bar | The total matters and you want to see the make-up |
| 100% Stacked Bar | Every bar is the same length at 100% | You compare shares of the make-up and ignore the total |
| Grouped Bar | Segments side by side | You compare each segment from one baseline |
| Pie Chart | A circle split into parts | The make-up of a single total |
| Line Chart | A line for each segment | You look at the trend of each segment |
Frequently asked questions
How is a Stacked Bar different from a Grouped Bar?
A stacked bar lays segments end to end in one bar. The total is clear, but segments that are not at the bottom are hard to compare. A grouped bar puts segments side by side. Each segment is easy to compare, but you do not see the total.
How is a Stacked Bar different from a 100% Stacked Bar?
In a stacked bar the heights differ by total, so you see both the overall size and the make-up, but comparing shares within each bar is harder. In a 100% stacked bar every bar is the same length at 100%, so shares compare easily.
How many segments can I stack?
ONS guidance recommends no more than 5 segments per bar. If there are many small segments, combine them into "Others".
Can a Stacked Bar handle negative values?
It can, but it is hard to read. Use small multiples. If you must use it, place negative segments below the zero line and use a marker to show the net total.
References
- Data visualisation: charts · Stacked bar charts · UK Government Analysis Function · analysisfunction.civilservice.gov.ukUsed to confirm: guidance on choosing and designing charts for official statistics
- Service manual: Parts of a whole, Stacked bar charts · Office for National Statistics (UK) · service-manual.ons.gov.ukUsed to confirm: guidance on designing and choosing stacked bar charts
- Stacked Bar Chart · U.S. Census Bureau · xdgov.github.ioUsed to confirm: guidance on designing and choosing a stacked bar chart
- Data Visualization Style Guide (Stacked bar charts) · Urban Institute · urbaninstitute.github.ioUsed to confirm: guidance on colour, type and chart layout
- Stacked bars · European Commission · data.europa.eu · data.europa.euUsed to confirm: guidance on designing and choosing stacked bars
- Visual Vocabulary (chart-doctor) · Financial Times · github.comUsed to confirm: classifying charts by the question they answer
Last updated 28 Nov 2026