Back to dashboards
ComponentChartFree

Combo Chart React component

A bar and line combo chart on two axes: bars for an amount like revenue, a smooth line for a rate like margin, with a dashed target, bars that grow in one after another, a line that draws over them, and a column tooltip with the change from the month before.

About the Combo Chart component

Combo Chart puts two measures with different units on one chart: an amount as bars on the left axis and a rate as a line on the right axis, so you can see revenue and margin, orders and conversion or signups and churn together.

The bars grow in one after another and the line draws over them. Hover, tap or use the arrow keys to read a month's values with the change from the month before, and add a dashed target for the line.

When to use it

Use it when two related numbers move together and the story is in how they relate: revenue vs margin, sessions vs conversion rate, tickets vs response time.

If both series share a unit, a single-axis line or bar chart is easier to read; dual axes can suggest relationships that aren't there.

Installation

Add the Combo Chart component to your project with the shadcn CLI. It lands in components/combo-chart.tsx as plain React + Tailwind CSS source you own and can edit.

Install
Copied!
npx shadcn@latest add @reactframe/combo-chart

Or copy the source by hand and install its dependencies:

Install
Copied!
npm install clsx tailwind-merge

More Chart components

Scatter Plot
Free
Stacked Area Chart
Free
Bubble Chart
Free
Pie Chart
Free
Candlestick Chart
Free
Radar Chart
Free