bloxa

Combo Chart

FREE

Bars with lines on a right axis: Pareto, volume vs. rate, actual vs. target.

Installation

Terminal
npx @bloxa/cli add combo-chart
# or: npx shadcn@latest add @bloxa/combo-chart

Packages installed automatically: motion

Examples

Pareto

Bars show downtime; the line shows the cumulative share on the right axis.

API reference

Every component also accepts the props of the element it renders.

ComboChart

PropTypeDefaultDescription
dataobject[]—Rows.
indexstring—Key for x-axis labels.
categoriesstring[]—Bar series (left axis).
lineCategoriesstring[]—Line series (right axis).
lineValueFormatter(value) => string—Format for the line series, e.g. percent.
lineDomain[number, number]—Right axis range, e.g. [0, 100].
stackedbooleanfalseStack the bars.
labels / colors / valueFormatter / height—Same as BarChart.