Componentcharts0.69 KB gzipZero dependencies

Radar Chart

Spider web chart with polygon axes and data polygon animation

Preview

Live Preview
Open ↗

Installation

Tokens guide →

Add to your project via CLI (zero dependencies, code you own):

npx bigbullui add radar-chart

Or install the full npm package:

npm install bigbullui

Usage

tsx3 lines
import { RadarChart } from "@/components/ui/radar-chart"; <RadarChart points={points} />

Source code

radar-chart.tsx + 1 helper

Zero 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

PropTypeDescription
pointsRadarChartPoint[]Configures points. (Default: [])
classNamestringOptional Tailwind or custom CSS classes merged with component styles.