About
A ring-cutout donut chart built on TanStack Charts that visualizes category proportions, such as revenue channel breakdowns, with an interactive tooltip.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Donut Chart to your project and fits it to your theme.
Code
How Donut Chart is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import DonutChart from "@/components/ui/tanstack-charts-donut-chart";
export default function DonutChartDemo() {
return (
<div className="flex w-full items-center justify-center p-6">
<DonutChart />
</div>
);
}








