bwrite( charts ) Polski

Stacked bar chart

Parts of a whole in each bar: sales by channel each month. Stacked as they are, or each bar stretched to 100%.

A sample to start from: change the table and the chart is saved in this browser.

Names in the first column, a column of numbers per series, their names in the first row. Paste from a spreadsheet into any cell.

ABCD
1
2
3
4
5
6
7

6 rows, names in row 1, labels in column A, 3 columns of numbers.

How to make a stacked bar chart

A stacked bar chart shows two things at once: how big each total is, and what it is made of. Monthly sales split into online, store and phone, for example. Each bar is one total, and the coloured blocks inside it are its parts.

Preparing the table

Names in the first column, then a column per part. The first row names the parts; those names go into the legend. Empty cells count as zero. For example:

MonthOnlineStorePhone
Jan604512
Feb695216
Mar784720
Apr875412
May964916
............

Paste your own table into any cell on the "Data" tab, straight from Excel or Google Sheets, or type over the sample. The chart redraws as you type. Under the cells you can see how the table was read: whether the first row holds names and which column holds the labels. If the guess is wrong, change "First row" or "First column". On "Look" you set the title, colours and number format; on "Download" you get a PNG in the size you need, an SVG, or the picture copied straight to the clipboard.

Stacked or 100%

Under "Series" on the "Look" tab you choose "Stacked" (bars as tall as their totals) or "Stacked to 100%" (every bar the same height, the parts as percentages). The first answers "how much in total and from where", the second "how the mix changed". When totals differ a lot from bar to bar, 100% makes the mix easier to compare.

Examples

  • Sales by channel each month.
  • Hours per project for every person on the team.
  • The household budget by category, month after month.

Who it is for

Anyone who wants to show a total and its parts in one picture: managers, analysts, people tracking their spending.