Components/Stacked bar chart

Stacked bar chart

Columns split into up to four parts, with a legend and a tooltip that adds them up.

Overview

Columns split into up to four parts, separated by a thin gap rather than a border. The tooltip lists every part and the total for that column.

What it does

  • Stack up to four series with a legend
  • Switch between the last 3, 6 or 12 months
  • Read a column's parts and total on hover or with the arrow keys
  • Grow in on load, or appear at once when reduced motion is on

Try it

  1. 1Hover a column
  2. 2Switch to 12M

Everything works in the live preview above.

Used in