Stop Rebuilding UI

Stats Half Donut Card

A half-circle donut breakdown stats card for React and Next.js with a 180-degree PieChart using startAngle and endAngle, var(--chart-N) segment fills, a centered total label, and legend pills below built with shadcn/ui ChartContainer and Tailwind CSS

Scroll to load preview

Preview a segment breakdown with a speedometer feel using this half donut stats card for React and Next.js. Features a ChartContainer-wrapped Recharts PieChart clamped to startAngle 180 and endAngle 0 for a semicircular silhouette, four var(--chart-N) segments with strokeWidth 2, a total label sitting inside the arc, and a four-column legend pill row below showing color dot, label, share percent, and absolute value. Built with TypeScript, ChartContainer from shadcn/ui, Recharts PieChart, ChartTooltipContent, motion/react parent entrance, and Tailwind CSS. Perfect for payment method breakdowns, browser share summaries, device distribution panels, and budget allocation widgets.

FAQ

Last updated on April 12, 2026

Was this page helpful?

Sign in to leave feedback.