Launch sale — 60% off Pro
Contact
ChartPie

Not affiliated with official shadcn/ui. Visit ui.shadcn.com for official docs.

React An interactive pie chart

An interactive React donut chart with active sector emphasis and dynamic center text showing selected value using shadcn/ui and Recharts

Looking to implement shadcn/ui patterns?

Join our Discord community for help from other developers.


The best charts respond to users. This interactive React donut chart combines activeShape highlighting with dynamic center Label text—when a sector is active, it pops out AND the center displays that month's specific value. Built with shadcn/ui and Recharts with dual Sector rendering for layered emphasis, it creates a two-tier focus system: the outer ring shows context, the active sector plus center text show details. Users get both overview and drill-down in one compact visualization. Perfect for executive dashboards, data exploration interfaces, or any context where users need to examine individual categories while maintaining awareness of the whole.

Pattern created by @haydenbleasel

Installation

Questions you might have