Concrete
data
Component

Stacked bar chart

Composition chart for small category stacks across time or groups.

Stacked bar chart is for composition, not precise comparison. Keep the segment count low and prefer normalized bars when the share is more important than total volume.

Run composition

ready
SearchReasoningTools
Playground

Props in the URL.

Controls update query params directly. Complex slots use curated fixtures so component states stay deterministic, linkable, and screenshot-ready.

Loading playground.
States

Rendered matrix.

Every state maps to the same component render route through the `state` query param.

Run composition

ready
SearchReasoningTools
Default

Vertical stacked composition.

/render state

Run composition

ready
SearchReasoningTools
Normalized

Normalized 100% composition.

/render state

Run composition

ready
SearchReasoningTools
Horizontal

Rail layout for compact summaries.

/render state
Props

Public contract.

NameTypeDefaultDescription
title *string-Chart title.
descriptionstring-Muted supporting copy.
groupsreadonly StackedBarGroup[][]Stacked bar groups.
normalizedbooleanfalseNormalizes each group to 100%.
orientation'vertical' | 'horizontal'verticalColumn or rail layout.
state'ready' | 'loading' | 'empty' | 'error'readyAsync data state.
showValuesbooleantrueShows group total labels.
showGridbooleantrueShows horizontal grid rules in vertical mode.
showXAxisbooleantrueShows axis labels in vertical mode.
showYAxisbooleantrueShows tick labels in vertical mode.
heightnumber220SVG plot height.
legendbooleantrueShows derived legend indicators.