How to Create a Stacked Bar Chart

Select Chart Type

Click the "Stacked" symbol in the available chart types.

Edit Data

You can paste your data straight into the grid, upload a CSV or Excel file, or connect a Google Sheet.

Required Data Format

CategoryValue 1Value 2Value 3
Q124126
Q229148
Q327137
Q433179
  • Category (required): the label for each bar, listed down the left side.
  • Value 1, Value 2, Value 3... (required, numeric, zero or positive): one column per segment. Add more value columns to add more segments per bar. Negative values aren't supported in stacked mode.

Customize Chart

Below are the different elements of this chart and the properties you can configure for each.

Bar

Each category's stacked segment.

Fillsets the segment's fill color, one row per value column
Strokesets the segment's border color
Stroke widthsets the segment's border thickness
Dashswitches the border between solid, dashed, or dotted

Labels

The value shown inside each segment.

Colorsets the label text color
Fontsets the label's font family and weight
Sizesets the label's font size
Prefixadds text before the value, e.g. "$"
Suffixadds text after the value, e.g. "%"
Decimalssets how many decimal places the value shows

Stack Totals

The combined total shown just past the end of each bar.

Colorsets the total's text color
Fontsets the total's font family and weight
Sizesets the total's font size
Prefixadds text before the total, e.g. "$"
Suffixadds text after the total, e.g. "%"
Decimalssets how many decimal places the total shows

Stack Connectors

Dashed lines linking the same segment across bars.

Colorsets the connector line color
Widthsets the connector line thickness
Dashswitches the connector between solid, dashed, or dotted
Arrow startadds an arrowhead at the connector's start
Arrow endadds an arrowhead at the connector's end

Axis

The X and Y axis lines.

Colorsets the axis line color, set independently for X and Y
Widthsets the axis line thickness, set independently for X and Y
Dashswitches the axis line between solid, dashed, or dotted
Arrow startadds an arrowhead at the axis line's start
Arrow endadds an arrowhead at the axis line's end

Grid

The vertical gridlines running up from the X axis.

Colorsets the gridline color
Widthsets the gridline thickness
Dashswitches gridlines between solid, dashed, or dotted
Arrow startadds an arrowhead at the gridline's start
Arrow endadds an arrowhead at the gridline's end

Axis Labels

The tick labels along both axes.

Colorsets the tick label color, applies to both axes
Fontsets the tick label's font family and weight, applies to both axes
Sizesets the tick label's font size, applies to both axes
Rotationrotates the tick labels, set independently for X and Y
Prefixadds text before the X axis numbers, e.g. "$" (X axis only)
Suffixadds text after the X axis numbers, e.g. "%" (X axis only)
Decimalssets how many decimal places the X axis numbers show (X axis only)
Minsets the X axis's minimum value instead of auto-calculating it (X axis only)
Maxsets the X axis's maximum value instead of auto-calculating it (X axis only)
Tickssets how many tick marks appear on the X axis (X axis only)

Legend

The key identifying each value column.

Positionmoves the legend to the top, bottom, right, or directly on the chart
Colorsets the legend text color
Fontsets the legend's font family and weight
Sizesets the legend's font size

Set Mode to Grouped for side-by-side bars instead of stacked segments, see the Grouped Bar Chart guide, or to 100% Stacked to show proportions instead of totals, see the 100% Stacked Bar Chart guide.

Export

Export as PNG, JPG, or SVG, then drop it into PowerPoint, Google Slides, or a report.

Ready to Build Your Own?