Stop Rebuilding UI

Shadcn.io is not affiliated with official shadcn/ui

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

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.

An interactive pie chart preview

Scroll to load preview

Installation

FAQ

Was this page helpful?

Sign in to leave feedback.