# C radar chart 1

> Product comparison — two laptops across six aspects

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

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

## Install

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

## Files

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

```tsx
"use client";

import { ChartCard } from "@/registry/default/charts/chart-card";
import { RadarChart } from "@/registry/default/charts/radar-chart";

// Review scores out of 10 for two laptops.
const data = [
  { air: 9.1, aspect: "Battery", pro: 7.8 },
  { air: 7.6, aspect: "Display", pro: 9.4 },
  { air: 7.2, aspect: "Speed", pro: 9.5 },
  { air: 9.4, aspect: "Weight", pro: 6.9 },
  { air: 5.8, aspect: "Ports", pro: 8.7 },
  { air: 8.8, aspect: "Price", pro: 6.1 },
];

export default function ProductComparison() {
  return (
    <ChartCard
      className="max-w-md"
      description="Review scores out of 10"
      title="Air vs Pro"
    >
      <RadarChart
        categories={["air", "pro"]}
        className="h-64"
        config={{ air: { label: "Air 13" }, pro: { label: "Pro 14" } }}
        data={data}
        index="aspect"
        valueFormatter={(value) => value.toFixed(1)}
      />
    </ChartCard>
  );
}
```
