Concrete
data
Component

Bar chart

Categorical comparison chart with optional comparison bars and horizontal rails.

Bar chart is for ranked or categorical values. Keep labels sparse and use comparison bars only when they answer a direct before/after question.

Capability score

ready
RouterMemoryToolsEval
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.

Capability score

ready
RouterMemoryToolsEval
Default

Vertical bars with value labels.

/render state

Capability score

ready
RouterMemoryToolsEval
Comparison

Muted comparison bars behind the primary series.

/render state

Capability score

ready
RouterMemoryToolsEval
Horizontal

Horizontal rail layout for ranked lists.

/render state

Capability score

ready
RouterMemoryToolsEval
Quiet

No value labels for dense cards.

/render state
Props

Public contract.

NameTypeDefaultDescription
title *string-Chart title.
descriptionstring-Muted supporting copy.
pointsreadonly DataPoint[][]Primary bar data.
comparisonPointsreadonly DataPoint[][]Muted comparison bars.
baselinenumber0Value used as the zero rail for positive or negative bars.
orientation'vertical' | 'horizontal'verticalColumn or rail layout.
state'ready' | 'loading' | 'empty' | 'error'readyAsync data state.
showValuesbooleantrueShows value 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.
surface'raised' | 'sunken' | 'transparent'raisedPlot stage surface.