> ## Documentation Index
> Fetch the complete documentation index at: https://docs.invoca.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Stacked Bar Charts

> The stacked bar chart divides each bar into color-coded sections, useful for comparing aggregated data alongside what it includes.

The stacked bar chart is similar to the [bar chart](/s/article/bar-charts), with one major difference: it includes a legend, which divides each bar into additional sections by color. You can only use an attribute to slice with color.

Stacked bar charts are typically used when you want to compare aggregated data and the data it includes together. Click a configurable axis chip (any chip with a `>`) to show Detail Labels (summaries for each section of each bar) or Total Labels (the sum of the stacks for each bar).

You can also plot the x-axis as a percentage, adding up to 100%: click the Measure or attribute chip you're using to slice with color, and toggle **Stack 100%** under **Format** (or from an axis chip). This feature is also available for stacked area and column charts.

Your search must have at least two attributes and one Measure to be represented as a stacked bar chart.

## Where to go next

* [Bar charts](/s/article/bar-charts)
* [Stacked column charts](/s/article/stacked-column-charts)
