← All use cases
Admin Panel Charts
Every admin panel needs charts for user metrics, system health, and activity monitoring. Chart.ts gives you server-renderable chart components that match your Tailwind-styled admin UI.
Example Implementation
dashboard.tsx
import { LineChart, GaugeChart, HeatmapChart } from "@chartts/react"
export function AdminDashboard({ stats }) {
return (
<div className="grid grid-cols-12 gap-4">
<div className="col-span-8 rounded-xl card p-6">
<h3 className="text-sm font-medium muted-text mb-4">User Growth</h3>
<LineChart
data={stats.users}
x="date"
y="count"
className="h-64"
lineClassName="stroke-cyan-400"
areaClassName="fill-cyan-400/10"
/>
</div>
<div className="col-span-4 grid gap-4">
<div className="rounded-xl card p-4">
<GaugeChart value={stats.cpu} max={100} label="CPU" className="h-32" />
</div>
<div className="rounded-xl card p-4">
<GaugeChart value={stats.memory} max={100} label="Memory" className="h-32" />
</div>
</div>
</div>
)
}Why Chart.ts for Admin Panel
Matches Tailwind-styled admin UI perfectly
Server-render for instant page loads
Gauge charts for system health at a glance
Heatmaps for activity pattern analysis
Sparklines in data tables for inline trends
Dark mode with one class toggle
Under 15kb added to your admin bundle
Start building your admin panel
Install Chart.ts and have your first chart rendering in 2 minutes.
$
npm install @chartts/react