Components
- Activity Heatmap
- Activity Rings
- Bar Chart
- Bar List
- Command Palette
- Composed Chart
- Corner Frame
- Data Table
- Delta Badge
- Distribution Bar
- Donut Chart
- Dot Plot
- Funnel Chart
- Heatmap Chart
- KPI Card
- Metric List
- Metric Value
- Period Tabs
- Radar Chart
- Radial Gauge
- Sankey Chart
- Scatter Chart
- Segmented Meter
- Sparkline
- Tick Bar
- Timeline
- Trend Chart
Blocks
- Activity Rings Card
- Allocation Card
- Balance Chart Card
- Breakdown Card
- Commerce KPI Row
- Contributions Card
- Data Table Card
- Distribution Card
- Dot Plot Card
- Dual Metric Card
- Funnel Chart Card
- Goal Chart Card
- Heatmap Chart Card
- Insight Card
- KPI Row Card
- Metric Tabs Chart Card
- Payment Summary Card
- Period Bar Chart Card
- Progress Card
- Revenue Ring Card
- Ring KPI Card
- Score Gauge Card
- Stage Bars Card
- Status Gauge Card
- Tick KPI Card
Mix areas, lines, and bars in one chart with dual axes, reference lines, peak markers, and hatched bars.
"use client"
import { ComposedChart } from "@/components/ui/composed-chart"A composed chart for shadcn/ui that mixes areas, lines, and bars in one plot, with a second y-axis for series on different scales, reference lines, peak markers, and hatched bars for forecast or projected values.
Installation#
pnpm dlx shadcn@latest add @dashboardcn/composed-chartAlso installs chart from shadcn/ui if missing.
Usage#
import { ComposedChart } from "@/components/ui/composed-chart"
<ComposedChart
data={data}
xKey="month"
series={[
{ key: "sales", label: "Sales", type: "area", highlightMax: true },
{ key: "goal", label: "Goal", type: "line", dashed: true },
]}
referenceLines={[{ y: 50000, label: "Target" }]}
showYAxis
/>Examples#
Dual axis#
Give a series axis: "right" to plot it against a second y-axis.
"use client"
import { ComposedChart } from "@/components/ui/composed-chart"Grouped and hatched bars#
Bars group side by side unless they share a stackId. pattern: "hatched" fills a bar with diagonal lines.
"use client"
import { ComposedChart } from "@/components/ui/composed-chart"Your dashboard, your code.
Every component is copied into your project with the shadcn CLI. No package to upgrade, nothing to override.