# Outcomes radar chart

> Patient-reported outcomes before and after, as a radar chart.

A shadcn/ui block from the [@organui](https://organui.com/?utm_source=shadcn.exchange) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/organui/chart-radar-outcomes).

- Page, with a live preview: https://shadcn.exchange/r/organui/chart-radar-outcomes
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/organui/chart-radar-outcomes-light-f7a596edb443fb97.png
- Registry item: https://organui.com/r/chart-radar-outcomes.json
- Categories: charts, charts-radar
- Listed: 2026-10-22, source last changed 2026-10-22

## Install

```bash
npx shadcn@latest add https://shadcn.exchange/r/organui/chart-radar-outcomes.json
```

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

## Dependencies

- npm packages: `recharts`
- Registry items: `card`, `chart`

## Notes from the registry

Outcomes radar chart: https://organui.com/charts/radar#chart-radar-outcomes

## Files

### `registry/base-nova/charts/chart-radar-outcomes.tsx`

```tsx
"use client"

import { PolarAngleAxis, PolarGrid, Radar, RadarChart } from "recharts"

import {
  Card,
  CardContent,
  CardDescription,
  CardFooter,
  CardHeader,
  CardTitle,
} from "@/components/ui/card"
import {
  ChartContainer,
  ChartLegend,
  ChartLegendContent,
  ChartTooltip,
  ChartTooltipContent,
  type ChartConfig,
} from "@/components/ui/chart"

export const description =
  "Patient-reported outcomes before and after, as a radar chart"

// Scores from 0 to 100, higher is better, a fictional patient.
const chartData = [
  { domain: "Mobility", before: 42, after: 71 },
  { domain: "Self-care", before: 55, after: 80 },
  { domain: "Activities", before: 38, after: 66 },
  { domain: "Pain", before: 30, after: 64 },
  { domain: "Mood", before: 58, after: 72 },
]

const chartConfig = {
  before: {
    label: "Before surgery",
    color: "var(--chart-1)",
  },
  after: {
    label: "Six months after",
    color: "var(--chart-2)",
  },
} satisfies ChartConfig

export function ChartRadarOutcomes() {
  return (
    <Card>
      <CardHeader className="items-center pb-4">
        <CardTitle>Outcomes</CardTitle>
        <CardDescription>
          Before and six months after a hip replacement
        </CardDescription>
      </CardHeader>
      <CardContent className="pb-0">
        <ChartContainer
          config={chartConfig}
          className="mx-auto aspect-square max-h-[250px]"
        >
          <RadarChart data={chartData}>
            <ChartTooltip
              cursor={false}
              content={<ChartTooltipContent indicator="line" />}
            />
            <PolarAngleAxis dataKey="domain" />
            <PolarGrid />
            <Radar
              dataKey="before"
              fill="var(--color-before)"
              fillOpacity={0.6}
            />
            <Radar
              dataKey="after"
              fill="var(--color-after)"
              fillOpacity={0.6}
            />
            <ChartLegend content={<ChartLegendContent />} />
          </RadarChart>
        </ChartContainer>
      </CardContent>
      <CardFooter className="text-sm text-muted-foreground">
        Better in every domain; a fictional patient.
      </CardFooter>
    </Card>
  )
}
```
