# Pie chart

Pie and donut charts with labels, spacing, gradients, and glow.

> For the complete documentation index, see [llms.txt](/llms.txt). Markdown variants are available by appending `.md` to any URL or sending an `Accept: text/markdown` header. An agent skill is available at [/.well-known/agent-skills/site-skill.md](/.well-known/agent-skills/site-skill.md).





<ComponentPreview name="ex-pie-chart">
  <div className="h-[430px] w-full rounded-xl border">
    <ChartcnExamplePieChart />
  </div>
</ComponentPreview>

## Install [#install]

```bash
npx shadcn@latest add @chartcn/pie-chart
```

Configure donut radius, slice padding, rounded corners, labels, selection, and per-category theme palettes through the declarative chart API.
