Combo chart
An amount as bars and a rate as a line, on two axes. The bars rise first and the line draws over them; one column highlight reads both.
| Period | Orders | Conversion |
|---|---|---|
| Jan | 820 | 2.1 |
| Feb | 760 | 2 |
| Mar | 910 | 2.3 |
| Apr | 1040 | 2.6 |
| May | 980 | 2.4 |
| Jun | 1210 | 2.9 |
| Jul | 1340 | 3.1 |
| Aug | 1290 | 2.8 |
| Sep | 1460 | 3.3 |
When to use
- Orders and conversion rate, signups and activation, spend and return.
- A rate that only means something next to its volume.
When not to use
- Two amounts in the same unit; group them as bars.
- Readers who will compare the two axes' heights; say plainly that the scales differ.
Installation
terminal
pnpm dlx shadcn@latest add @caliper/combo-chart
Adds its 7 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.
API reference
ComboChart
10 props
PropTypeDefaultDescription
label *string—
data *readonly ChartDatum[]—
bars *readonly ChartSeries[]—One or more bar series, grouped side by side.
line *ChartSeries—The series on the right axis.
formatBar((value: number) => string)numberText
formatLine((value: number) => string)numberText
heightnumber260
loadingboolean—
errorstring—
classNamestring—
Keyboard
- No custom key handling; Tab and the native activation keys do the work.
Accessibility
It exposes group and status semantics, with aria-label, aria-busy and aria-hidden kept in step with state. Changes that matter are announced through a live region.
Notes for AI
Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.
/docs/components/combo-chart.mdThe index of every part is at /llms.txt.
More in Time-series charts
Bar chartA compact bar series with an accessible label.Line chartOne or more series over time, with hover readout and an optional band.Stacked area chartParts of a whole over time, stacked from the baseline. Switching between values and share morphs the same layers, so growth and share read as one picture.