# C polar area chart 3

> Tickets by topic — a colour per slice

A shadcn/ui block from the [@cnippet](https://ui.cnippet.dev/?utm_source=shadcn.exchange) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/cnippet/c-polar-area-chart-3).

- Page, with a live preview: https://shadcn.exchange/r/cnippet/c-polar-area-chart-3
- Screenshot: https://shadcn.exchange/shot/cnippet/c-polar-area-chart-3/light.png
- Registry item: https://ui.cnippet.dev/r/c-polar-area-chart-3.json
- Categories: polar area chart
- Listed: 2026-10-27, source last changed 2026-10-27

## Install

```bash
npx shadcn@latest add https://shadcn.exchange/r/cnippet/c-polar-area-chart-3.json
```

Run it in a project that has shadcn/ui set up. It adds the files below and installs what they depend on.

## Dependencies

- Registry items: `@cnippet/polar-area-chart`, `@cnippet/chart-card`

## Files

### `registry/default/chart-variants/c-polar-area-chart-3.tsx`

```tsx
"use client";

import { ChartCard } from "@/registry/default/charts/chart-card";
import { PolarAreaChart } from "@/registry/default/charts/polar-area-chart";

// Support tickets by topic this week.
const data = [
  { tickets: 184, topic: "Billing" },
  { tickets: 126, topic: "Login" },
  { tickets: 92, topic: "Integrations" },
  { tickets: 61, topic: "Exports" },
  { tickets: 38, topic: "Mobile" },
];

export default function TicketsByTopic() {
  return (
    <ChartCard
      className="max-w-sm"
      description="Support tickets by topic, this week"
      title="Ticket volume"
    >
      <PolarAreaChart
        category="tickets"
        className="h-64"
        data={data}
        index="topic"
        valueFormatter={(value) => `${value} tickets`}
      />
    </ChartCard>
  );
}
```
