Charts for dashboards
When a dashboard puts every trend, comparison, and activity pattern into one visualization, users have to work harder to spot the signal. This collection splits those jobs across seven web components: Area Chart, Bar Chart, Line Chart, Sparkline, Heatmap, Bar List, and Activity Heatmap. Open a chart card to see its example and install details.
Code
@otfdashkit/uiimport { AreaChart } from '@otfdashkit/ui'
const data = [
{ month: 'Jan', Revenue: 12400, Users: 840 },
{ month: 'Feb', Revenue: 18200, Users: 1120 },
// ...
]
export function RevenueChart() {
return (
<AreaChart
data={data}
dataKey={['Revenue', 'Users']}
xAxisKey="month"
height={240}
showLegend
curved
/>
)
}Free with the SDK. Every chart on this page ships in @otfdashkit/ui under the MIT license.
Kit for this component
SaaS Dashboard Kit$99
Add charts to a dashboard for the metrics you already track.
Choose a chart for your dashboard
- Which shadcn charts can I use in a React dashboard?
- This page covers 7 web React components in @otfdashkit/ui: Area Chart, Bar Chart, Line Chart, Sparkline, Heatmap, Bar List, and Activity Heatmap. Area Chart, Bar Chart, and Line Chart are built on Recharts.
- How do I add these shadcn charts to a React app?
- Install the free MIT-licensed SDK with `bun add @otfdashkit/ui` (or npm/pnpm) and import { AreaChart, BarChart, LineChart, Sparkline, Heatmap, BarList, ActivityHeatmap } from '@otfdashkit/ui'.
- Which platform do these charts cover?
- This page documents the web components in @otfdashkit/ui. Every chart listed here is registered as web.
Area Chart
Smooth gradient area chart with series, tooltip, and legend.
Bar Chart
A bar graph with one or more series, an optional stack, and a tooltip.
Line Chart
Multi-series line chart with dot markers, legend, and tooltip.
Sparkline
Compact inline trend chart for embedding in stat cards and tables.
Heatmap
Cell-grid heatmap with color ramp legend — usage, density, and correlation matrices.
Bar List
Tremor-style ranked bar list with values and optional links — top sources, top pages.
Activity Heatmap
GitHub-style yearly activity contribution grid with hover tooltips.
Need a full app around your dashboard? Browse OTF's app kits.