How to make a stacked bar
-
Paste your data
Paste cells from a spreadsheet or upload a CSV with a text, date or number column for Category and one or more number columns for Values.
-
Check the columns
The stacked bar picks its columns for you. Change any of them under Data.
-
Style it and download
Under Style, pick a look, colours, background and size, add a title and source, then download SVG or PNG.
What is a stacked bar?
A stacked bar chart draws a horizontal bar per category whose length is the total, split into coloured segments for the parts, sorted from largest to smallest total. It handles long category names well.
How to read it
Total bar length is the category total and the sort gives the ranking. The first segment shares the left edge across all bars, so it is the one part you can compare precisely.
When to use it
Totals and their parts, sorted, with room for long names. It is one of the part to whole charts, which show how a total splits into its parts.
If only the mix matters, use a 100% stacked bar. For a natural order such as years, a Stacked column keeps that order, since this chart re-sorts by total.
Tips for a better stacked bar
- Put the most important part first so it lines up on the left edge.
- Keep to four or five parts; group the rest into Other.
- Use it when category names are long or there are more than a dozen categories.
Data you need
One row per item with a text, date or number column for Category and one or more number columns for Values. Column names can be anything; the chart maker matches columns by type, and you can change the match under Data.
| Year | Subscriptions | Services | Hardware | Licensing |
|---|---|---|---|---|
| 2021 | 42 | 31 | 18 | 9 |
| 2022 | 55 | 33 | 16 | 10 |
| 2023 | 68 | 36 | 14 | 11 |
| 2024 | 84 | 38 | 13 | 12 |
| 2025 | 101 | 41 | 11 | 12 |
Other charts for the same data
More part to whole charts
Questions, answered
- What is a stacked bar?
- A stacked bar chart draws a horizontal bar per category whose length is the total, split into coloured segments for the parts, sorted from largest to smallest total. It handles long category names well.
- How do you read a stacked bar?
- Total bar length is the category total and the sort gives the ranking. The first segment shares the left edge across all bars, so it is the one part you can compare precisely.
- How do I make a stacked bar?
- Paste your data into the chart maker with a text, date or number column for Category and one or more number columns for Values. The stacked bar draws as you type. Then pick a look and a size and download it as SVG or PNG.
- When should I use a stacked bar?
- Totals and their parts, sorted, with room for long names. It belongs to the part to whole family of charts, which show how a total splits into its parts. If only the mix matters, use a 100% stacked bar. For a natural order such as years, a Stacked column keeps that order, since this chart re-sorts by total.
- Is this stacked bar maker free?
- Yes. It is free with no sign-up, your data stays in your browser, and you can download the stacked bar as SVG or PNG.