Stop Rebuilding UI

Stats Donut Breakdown Card

A donut breakdown stats card for React and Next.js with a ChartContainer-wrapped PieChart, centered total, side legend with dots, percentages, and absolute values built with shadcn/ui and Tailwind CSS

Scroll to load preview

Visualize segment composition with this donut breakdown stats card for React and Next.js. Features a ChartContainer-wrapped Recharts PieChart using var(--chart-1) through var(--chart-5) via ChartConfig, an aspect-square chart body capped at 220px, a centered total overlay, ChartTooltipContent hideLabel tooltip, and a right-aligned legend listing each segment with a color dot, label, percentage, and absolute value. Built with TypeScript, ChartContainer from shadcn/ui, Recharts PieChart, motion/react parent entrance, and Tailwind CSS. Perfect for payment method dashboards, traffic source breakdowns, browser share reports, and plan distribution views.

FAQ

Last updated on April 12, 2026

Was this page helpful?

Sign in to leave feedback.