Stop Rebuilding UI

Shadcn.io is not affiliated with official shadcn/ui

React Stacked Pie Chart

Concentric pie charts with two data series as nested rings

Compare two distributions at once. This React chart stacks two pie charts concentrically—desktop traffic in the inner ring, mobile in the outer ring. Each ring shows its own proportional breakdown while using matching colors for the same categories. Built with Recharts and shadcn/ui, you create nested rings by setting different innerRadius and outerRadius values on each Pie component. Perfect for Next.js dashboards comparing current vs previous period, desktop vs mobile, or any two related categorical distributions.

React Stacked Pie Chart preview

Scroll to load preview

Installation

FAQ

Was this page helpful?

Sign in to leave feedback.