Componentcharts0.69 KB gzipZero dependencies
Radar Chart
Spider web chart with polygon axes and data polygon animation
Preview
Live Preview
Installation
Tokens guide →Add to your project via CLI (zero dependencies, code you own):
npx bigbullui add radar-chartOr install the full npm package:
npm install bigbulluiUsage
tsx3 lines
import { RadarChart } from "@/components/ui/radar-chart"; <RadarChart points={points} />Source code
radar-chart.tsx + 1 helperZero third-party dependencies (2 local files shown in tabs below).
tsxradar-chart.tsx113 lines
"use client"; import * as React from "react";import { cn } from "./lib/utils"; export interface RadarChartPoint { x: number; y: number; label: string;} export interface RadarChartProps extends React.HTMLAttributes<HTMLDivElement> { points: RadarChartPoint[]; className?: string;} export function RadarChart({ points = [],Props
| Prop | Type | Description |
|---|---|---|
| points | RadarChartPoint[] | Configures points. (Default: []) |
| className | string | Optional Tailwind or custom CSS classes merged with component styles. |