Stop Rebuilding UI

Stats Donut With Callouts

A segment breakdown donut stats card for React and Next.js with positioned segment callouts, center total, and ChartContainer-wrapped PieChart built with shadcn/ui and Tailwind CSS

Scroll to load preview

Summarize segment distribution at a glance with this donut stats card for React and Next.js. Features a ChartContainer-wrapped Recharts PieChart with a 60/88 inner/outer radius, four absolutely-positioned callout labels at the 12/3/6/9 o'clock positions with short connector lines, a center total with label, tabular-nums percentages, and chart-token-driven segment colours flowing through ChartConfig. Built with TypeScript, ChartContainer from shadcn/ui, Recharts PieChart, motion/react parent entrance, Lucide React icons, and Tailwind CSS. Perfect for payment method breakdowns, traffic source reports, device distribution cards, and budget allocation dashboards.

FAQ

Last updated on April 12, 2026

Was this page helpful?

Sign in to leave feedback.