Skip to content
caliper ui pro docs

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.

Pro
Orders and checkout conversion

Orders and checkout conversion
PeriodOrdersConversion
Jan8202.1
Feb7602
Mar9102.3
Apr10402.6
May9802.4
Jun12102.9
Jul13403.1
Aug12902.8
Sep14603.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.md

The index of every part is at /llms.txt.

More in Time-series charts