Composition Chart

Preview

Sep 5100%
Aug 1Sep 5
Sep 5100%
Aug 1Sep 5

Install

Add it with the shadcn CLI, or copy the source manually.

$ bunx --bun shadcn add @beui/composition-chart

API Reference

CompositionChart

series
readonly CompositionSeries[]
Default—
periods
readonly string[]

Unique labels in chronological order.

Default—
view?
"area" | "bar"
Default—
period?
string
Default—
defaultPeriod?
string
Default—
onPeriodChange?
((period: string) => void)
Default—
formatValue?
((value: number) => string)
Default—
label?
string
Default—
className?
string
Default—

CompositionChartPlot

className?
string
Default—

CompositionChartLegend

className?
string
Default—

Updated