Bar Chart Maker

Stacked bar chart, free, nothing uploaded

Stacked Bar Chart Maker

Build a stacked bar chart in the browser: paste or import your numbers, one column per series, and every bar carries its own total. Stretch the bars to full height and it becomes a segmented bar chart - export a PNG or SVG either way.

Bar One bar per category, drawn vertically.

Drawn in your browser. Your numbers are never uploaded.

Your data

One row per bar: Mon, 120. Tabs pasted from Excel work. A header row with several columns makes one series per column. You can also drop an .xlsx file here.

Order
Colours

The number above each bar is the total. Put the segment you care about most at the bottom of the stack - that is the one readers can measure.

What a stacked bar chart shows

A stacked bar chart puts every series inside a single bar per category, one segment on top of the next, with the total printed above it. Stretch every bar to the same height instead and you have a segmented bar chart - the 100% stacked version - where the segments compare shares rather than totals. Where a grouped chart asks the reader to compare side-by-side bars, a stacked chart asks them to read a total and then a split. That is a different question, and it is the right one whenever the sum is the headline.

Revenue by channel per month. Headcount by department per office. Hours by task type per week. In each case the reader wants two things at once: how big the category is overall, and what it is made of. A stacked bar delivers both without a second chart.

This page opens with the stacked type already selected and a three-series table loaded, so the totals are visible before you change anything. The controls are the same as on the main bar chart maker, and you can flip to the grouped bar chart or the horizontal bar chart at any time without touching your data.

Stacked, grouped, or 100% stacked?

The three layouts sit next to each other in the type strip, which makes the choice easy to test rather than guess:

A rough rule: if the top of the bar carries a number, use stacked. If each bar needs its own little group to be legible, use grouped. If the bars add up to wildly different totals and you keep asking "but what percentage?", use 100% stacked.

How to make one here

  1. One column per series, one row per category. The first column holds the labels; every column after it becomes a segment. A header row such as Month, Online, Store, Wholesale names the segments in the legend.
  2. Paste, or import an .xlsx file. The Import .xlsx or .csv button reads a workbook inside the browser and offers a worksheet picker when there is more than one sheet. Nothing leaves your machine.
  3. Export. PNG at twice the screen resolution for slides, SVG for print, Illustrator or Figma. No watermark either way.

Reading the example

The data box holds three months and three channels. The tallest stack is March at 218, and most of that height comes from Online, the bottom segment. Store is the middle band and stays roughly flat across the three months, which is exactly the kind of pattern a stacked chart reveals for free: a flat segment under a growing one means the growth came from somewhere specific, not from everything at once.

One thing to watch: the middle segment is the hardest to compare across bars. Online sits on the baseline, so its size is easy to judge. Wholesale sits on top of two other segments, so its top edge moves with everything below it. Readers compare segments by their top edges, which is why the bottom segment always wins and the top segment is the hardest to read. If precision on a middle segment matters, a grouped chart is the honest choice.

Negative values

A stacked chart can handle a series that goes negative, and this one does: positive segments climb upward from zero, negative segments hang below it. That keeps a returns or adjustment column in the same picture as sales, which is often exactly what a monthly report needs. It does make the chart harder to read, so if more than one series regularly goes below zero, consider a diverging bar chart instead.

Making stacks readable

Where stacked bars earn their place

Monthly reports are the natural home: a fixed set of categories, a fixed set of components, and a reader who wants the total first. Budget breakdowns work the same way, with each bar a department and each segment a cost type. Survey results work when the answer scale is ordered, such as strongly agree through strongly disagree, because the stack then reads as a sequence rather than a set.

What a stacked chart cannot do is tell you whether the change in one segment was offset by another - the total hides that. When that question matters, the grouped version, or two stacked charts side by side in different units, will answer it.

Frequently asked questions

What is the difference between a stacked and a grouped bar chart?
A stacked bar chart puts all the series for a category into one bar, with each series as a coloured segment and the total written above the bar. A grouped bar chart gives each series its own bar side by side. Stacked answers what the total is and what it is made of; grouped answers how the individual series compare.
How do I set up data for a stacked bar chart?
The first column holds the category labels and every column after it becomes one segment, so a header row of Month, Online, Store, Wholesale produces three segments per bar. Paste it into the data box or import an .xlsx file, and the legend picks up the column names automatically.
How do I turn this into a 100% stacked chart?
Click Stacked proportional bar in the chart type strip. Every bar is then stretched to 100%, so the segments show shares rather than volumes and the totals disappear. Your data is unchanged, so you can switch back at any time.
What happens to negative values in a stack?
Negative values are drawn below the zero line, so the rest of the stack still climbs upward from zero and the bar keeps a sensible total. This is useful for a returns or adjustment column next to sales, though a chart with several negative series reads better as a diverging bar chart.
How many segments should one bar have?
Three to five. Past five segments the middle bands get too thin to compare and the legend starts carrying information the chart should carry. If you need more than five series, group the small ones into an Other segment or split the chart in two.
Why is comparing segments inside a stack so hard?
Readers judge a segment by its top edge, and every edge above the baseline moves with the segments below it. That means the bottom segment is the easiest to compare across bars and the top one is the hardest. Put the segment you care about most at the bottom, or switch to grouped if middle segments need exact comparison.
Is a segmented bar chart the same as a 100% stacked chart?
Yes - segmented bar chart, 100% stacked chart and stacked proportional bar chart are three names for the same layout: every bar stretched to the same height, so the segments show shares rather than totals. Click Stacked proportional bar in the type strip to get it, and your data does not change.
Is my data uploaded?
No. The chart is drawn by JavaScript in your own browser tab, so neither pasted data nor an imported .xlsx file is sent anywhere. Close the tab and the numbers are gone.