# C radial chart 1

> Activity rings — three daily goals

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-1).

- Page, with a live preview: https://shadcn.exchange/r/cnippet/c-radial-chart-1
- Screenshot: https://shadcn.exchange/shot/cnippet/c-radial-chart-1/light.png
- Registry item: https://ui.cnippet.dev/r/c-radial-chart-1.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-1.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`

## Files

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

```tsx
"use client";

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

// Today's progress toward each daily goal, in %.
const data = [
  { goal: "Stand", progress: 92 },
  { goal: "Exercise", progress: 64 },
  { goal: "Move", progress: 81 },
];

export default function ActivityRings() {
  return (
    <ChartCard
      className="max-w-xs"
      description="Progress toward today's goals"
      title="Activity"
    >
      <RadialChart
        category="progress"
        centerLabel="average"
        centerValue="79%"
        className="h-60"
        config={{
          Exercise: { color: "var(--chart-2)" },
          Move: { color: "var(--chart-5)" },
          Stand: { color: "var(--chart-1)" },
        }}
        data={data}
        index="goal"
        max={100}
        valueFormatter={(value) => `${value}%`}
      />
    </ChartCard>
  );
}
```
