Stop Rebuilding UI

Stats Stacked Donut Card

A concentric dual-ring donut stats card for React and Next.js with two stacked Pie components at different radii, outer subcategory ring, inner high-level grouping ring, and a pill legend built with shadcn/ui and Tailwind CSS

Scroll to load preview

Visualize a two-level distribution at a glance with this stacked donut stats card for React and Next.js. Features a ChartContainer-wrapped Recharts PieChart with two concentric Pie components - an inner ring for high-level grouping via var(--chart-1) and var(--chart-2) and an outer ring for subcategory breakdown via var(--chart-3) through var(--chart-5), an aspect-square max-h-[220px] container, ChartTooltipContent with hideLabel, and a two-column pill legend below showing colored dots, labels, and tabular-nums absolute values. Built with TypeScript, ChartContainer from shadcn/ui, Recharts PieChart with two Pie components, motion/react parent entrance with useReducedMotion, Lucide React icons, and Tailwind CSS. Perfect for spend by category + vendor dashboards, traffic by region + country widgets, and inventory by warehouse + SKU breakdowns.

FAQ

Last updated on April 12, 2026

Was this page helpful?

Sign in to leave feedback.