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
A metric card with a big value, a dot-plot distribution with its peak called out, and the change vs the previous period.
Transactions
Peak: Wed106K
vs last period+34,002
Customers
Highest: Thu1,284
vs last period+320
import { Ellipsis } from "lucide-react"
import { Button } from "@/components/ui/button"A metric card with a big value, a dot-plot distribution with its peak called out, and the change versus the previous period. Suits transactions per day and similar counts.
Installation#
pnpm dlx shadcn@latest add @dashboardcn/dot-plot-cardAlso installs card, tooltip from shadcn/ui if missing.
Usage#
import { DotPlotCard } from "@/components/dot-plot-card"
<DotPlotCard
title="Transactions"
value={106000}
format="compact"
data={[1, 1, 2, 1, 2, 4, 6, 4, 2, 1, 2, 1, 1, 1]}
labels={["Sat", "Sun", "Mon", "Tue", "Tue", "Wed", "Wed", "Wed", "Thu", "Thu", "Fri", "Fri", "Sat", "Sat"]}
delta={34002}
deltaLabel="vs last period"
color="var(--color-green-600)"
action={<Button variant="outline" size="icon-sm" className="rounded-full"><Ellipsis /></Button>}
/>Your dashboard, your code.
Every component is copied into your project with the shadcn CLI. No package to upgrade, nothing to override.