Charts
ComboChart
Bar + line overlay on a shared axis โ compare volume with trend/rate simultaneously.
Quick Preview
Installation
npm install recharts
// Copy component fromsrc/components/charts/ComboChart.tsx
Usage
import ComboChart from '@/components/charts/ComboChart'<ComboChartdata={data}xKey="month"barKey="sales"lineKey="growth"barLabel="Revenue"lineLabel="Growth %"barColor="#F45A5A"lineColor="#f59e0b"height={280}/>
Examples
Sessions + Bounce Rate
Prompt Preview
Copy a prompt that recreates this UI
Paste this into your AI coding assistant to generate code that closely matches the reference, including color, size, shape, typography, spacing, and polish.
Copy-ready AI prompt
Starts from the current visual reference and project constraints.
Tweak only product-specific copy or data after the first generation pass.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
data* | Record<string, string | number>[] | - | Data array |
xKey* | string | - | X-axis key |
barKey* | string | - | Key for bar series |
lineKey* | string | - | Key for line series |
barColor | string | '#F45A5A' | Bar fill colour |
lineColor | string | '#6366f1' | Line stroke colour |
height | number | 300 | Chart height |