# C sunburst chart 3

> Org structure — departments and teams

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-sunburst-chart-3).

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

## Install

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

## Files

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

```tsx
"use client";

import { ChartCard } from "@/registry/default/charts/chart-card";
import { SunburstChart } from "@/registry/default/charts/sunburst-chart";

// Headcount by department and team.
const data = [
  {
    children: [
      { name: "Platform", value: 18 },
      { name: "Product", value: 26 },
      { name: "Mobile", value: 12 },
      { name: "Data", value: 8 },
    ],
    name: "Engineering",
  },
  {
    children: [
      { name: "Account execs", value: 17 },
      { name: "SDRs", value: 14 },
    ],
    name: "Sales",
  },
  {
    children: [
      { name: "Support", value: 15 },
      { name: "Onboarding", value: 7 },
    ],
    name: "Customer success",
  },
  {
    children: [
      { name: "Brand", value: 6 },
      { name: "Growth", value: 8 },
    ],
    name: "Marketing",
  },
];

export default function OrgStructure() {
  return (
    <ChartCard
      className="max-w-sm"
      description="131 people, department → team"
      title="Org structure"
    >
      <SunburstChart
        className="h-64"
        data={data}
        valueFormatter={(value) => `${value} people`}
      />
    </ChartCard>
  );
}
```
