# C radial chart 2

> Seats used — half ring with an upgrade action

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-radial-chart-2).

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

## Install

```bash
npx shadcn@latest add https://shadcn.exchange/r/cnippet/c-radial-chart-2.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/radial-chart`, `@cnippet/chart-card`, `@cnippet/button`

## Files

### `registry/default/chart-variants/c-radial-chart-2.tsx`

```tsx
"use client";

import { ChartCard } from "@/registry/default/charts/chart-card";
import { RadialChart } from "@/registry/default/charts/radial-chart";
import { Button } from "@/registry/default/ui/button";

const SEATS = 50;
const data = [{ metric: "Seats", used: 42 }];

export default function PlanUsage() {
  return (
    <ChartCard
      className="max-w-xs"
      description="Team plan"
      footer={
        <div className="flex w-full items-center justify-between gap-3">
          <span>8 seats left</span>
          <Button size="sm" variant="outline">
            Add seats
          </Button>
        </div>
      }
      title="Seats used"
    >
      <RadialChart
        category="used"
        centerLabel={`of ${SEATS} seats`}
        centerValue="42"
        className="h-44"
        data={data}
        endAngle={-180}
        index="metric"
        max={SEATS}
        showLegend={false}
        startAngle={180}
      />
    </ChartCard>
  );
}
```
