Chart Radar

Radar charts plot one series across several axes on a polar grid. Built as a self-contained SVG component with gradient fill, glow, and dot markers.

Gradient fill

A radar with a vertical gradient fill and a glowing stroke.

Dark previewReplay previewOpen in new tab

Usage

Import the parts you need from the component's folder.

ts
import { ChartRadar } from "@/components/ui/chart";

Filled with glow

A diagonal gradient, thicker glowing stroke, and ring-style dots.

Dark previewReplay previewOpen in new tab

API Reference

ChartRadar

PropTypeDefaultDescription
dataRecord<string, any>[]—One row per axis.
configChartConfig—Map of dataKey → { label, color }.
dataKeystring"value"Row key for the plotted value.
categoryKeystring"category"Row key for the axis label.
maxDomainnumber100Value mapped to the outer ring.
gridLevelsnumber5Concentric grid rings.
gradientbooleantrueFill the area with a gradient.
gradientDirection"vertical" | "diagonal""vertical"Gradient direction.
glowbooleantrueApply a glow filter to the stroke.
dotsbooleantrueRender dot markers at each vertex.
dotVariant"solid" | "ring""solid"Filled dots or background-filled rings.
strokeWidthnumber2Series outline width.