About
One total, divided between its parts.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Pie Chart to your project and fits it to your theme.
Code
How Pie Chart is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
'use client';
import { PieChart } from '@/components/ui/panel-pie-chart';
const SPEND = [
{ label: 'Rent', value: 1450 },
{ label: 'Food', value: 620 },
{ label: 'Transport', value: 210 },
{ label: 'Utilities', value: 185 },
];
export default function PieChartPie() {
return (
<PieChart data={SPEND} className="max-w-60">
<PieChart.Slices />
<PieChart.Legend />
</PieChart>
);
}








