--- title: Donut Chart description: Used to display data as segments of a circular chart that looks like a donut links: storybook: charts-donut-chart--basic recharts: https://recharts.org/en-US/api/PieChart --- ## Usage ```tsx import { Chart, useChart } from "@chakra-ui/charts" import { Cell, Pie, PieChart } from "recharts" ``` ```tsx ``` ## Examples ### Point Label To display a point label on the chart, use the `PointLabel` component from `recharts`. ### Start and End Angle Customizing the `startAngle` and `endAngle` prop of the `` component can create partial donuts. ```tsx {/* ... */} ``` ### Angle Padding To add some space between the segments, use the `paddingAngle` prop. > **Pro Tip:** To round the corners of the segments, use the `cornerRadius` > prop. ### Detached Segment To create an effect where the active segment is scaled and detached from the rest of the segments, use the `activeIndex` prop and the `activeShape` prop. ```tsx /activeIndex/ /activeShape/ } /> ``` ### Centered Text Use the `Chart.RadialText` component to display a centered text on the chart with an optional description. ```tsx