Skip to main content

Stacked bar charts

Stacked bar charts divide horizontal bars into color-coded segments to simultaneously show total values and the individual parts contributing to those totals.

Written by Nico Londono
Updated this week

Stacked bar charts are similar to the bar chart, but they include a key distinction: a legend divides each horizontal bar into additional color-coded sections.

You may only use an attribute to define these color slices.

These charts are excellent tools for comparing overall aggregated data alongside the individual components that comprise it. You can enhance the view by clicking any configurable axis chip (marked with a > symbol) to display either:

  • Detail Labels: These provide summaries for each distinct colored section within every bar.

  • Total Labels: These display the sum of all stacked segments at the end of each bar.

For your data to be displayed as a stacked bar chart, your Chart Builder query must include a minimum of two attributes and one measure.

Did this answer your question?