Skip to main content

Radar Chart

A radar/spider chart component built using Recharts v3. Visualize multi-variable data across 3+ dimensions with customizable colors, gradients, glow effects, and interactive legend.

Installation

$ npx shadcn@latest add @orecus/radar-chart
Registry:
@orecus/chart@orecus/color-utils@orecus/chart-utils@orecus/card

Component

Skill Assessment

Single series performance profile

Employee Comparison

Alice vs Bob across 6 competencies

Props

PropTypeDefaultDescription
data*Record<string, any>[]Chart data array — each item represents a dimension/axis
categories*string[]Data keys to plot as radar series
index*stringData key for the angle axis (dimension labels)
colorsThemeColor[]["primary", "blue", "green"]Theme colors for each category
variant'default' | 'gradient''gradient'Stroke style
glowbooleantrueAdd colored glow/blur effect behind radar areas
valueFormatter(value: number) => stringFormatter for values (tooltip & radius axis)
showGridbooleantrueShow polar grid lines
showLegendbooleantrueShow legend
showTooltipbooleantrueShow tooltip on hover
showRadiusAxisbooleanfalseShow radius axis (value scale)
showDotsbooleantrueShow dots at data vertices
dotSizenumber4Dot radius in pixels
fillOpacitynumberFill opacity for radar areas (default: 0.3 for gradient, 0.15 for default)
interactiveLegendbooleanfalseAllow clicking legend items to toggle series visibility
legendIndicator'square' | 'circle' | 'line''line'Legend indicator shape
legendWrapbooleantrueAllow legend items to wrap
tooltipSortByValuebooleanfalseSort tooltip items by value (descending)
tooltipShowTotalbooleanfalseShow total in tooltip for multi-series
tooltipTotalLabelstring"Total"Label for the total row in tooltip
cardPropsCardPropsProps passed to the Card wrapper