About
A donut chart with a hollow center that displays an aggregated KPI total as text in the middle of the ring.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Center Donut Chart to your project and fits it to your theme.
Code
How Center Donut Chart is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import CenterDonut from "@/components/ui/tanstack-charts-center-donut";
export default function CenterDonutDemo() {
return (
<div className="flex w-full items-center justify-center p-8">
<CenterDonut />
</div>
);
}
















