Stop Rebuilding UI

Shadcn.io is not affiliated with official shadcn/ui

A donut chart

A React donut chart with center hole for adding text or emphasis using innerRadius with shadcn/ui and Recharts

Donut charts are pie charts evolved. This React donut chart uses innerRadius=60 to create a center hole, transforming the solid pie into a ring. Built with shadcn/ui and Recharts, the empty center provides space for summary text, totals, or focus information without obscuring the proportional slices. The ring shape also reduces visual weight compared to solid pies—less overwhelming, more modern. Perfect for dashboards where you want to display a category total in the center, KPI summaries, or when showing multiple related donut charts in a compact space.

A donut chart preview

Scroll to load preview

Installation

FAQ

Was this page helpful?

Sign in to leave feedback.