Skip to content
Browse docs and components

Composed Chart

composed-chart

Columns and a line on one axis, on TanStack Charts: volume against its target, actuals against the plan. Rounded columns side by side, the line drawn over them, and a band cursor that lists every series in the column.

Responsive

Install

$npxshadcnadd@forme/composed-chart

Adds the component, its registry dependencies, and the token stylesheet you import once.

API reference

Read from the source, so it is the API of the file you install. A prop marked * is required.

ComposedChart

Columns and lines on one axis: volume against its target, signups against the trend, actuals against the plan.

PropTypeDefaultDescription
data*readonly Row[]—
index*keyof Row & string—The field that labels each column: a month, a week, a release.
bars*readonly ComposedChartSeries<Row>[]—Drawn as columns, side by side. Colours start at --chart-1.
lines*readonly ComposedChartSeries<Row>[]—Drawn as lines over the columns, coloured after the bars.
label*string—Accessible name. Say what the columns and the lines each measure.
formatValue(value: number) => stringplain
heightnumber260
classNamestring—