Radar ChartProv1.0.0
Two or three profiles over the same measures, as lit outlines over faint bodies. Arrow keys sweep the axes and the tooltip ranks the profiles on each one with the lead in words; legend entries hide a profile or bring it forward.
pnpm dlx shadcn@latest add @beautiful-ui-pro/lumen-radar-chartNeeds your registry key. Your components.json style picks the Base UI or Radix build: radix-*, new-york and default get Radix, base-* gets Base UI.
Styles didn't apply?
The CLI adds the styles to the CSS file named in components.json (tailwind.css). Check that it points at your global stylesheet, that the project uses Tailwind CSS v4, and that the file is imported in your root layout. Installed by hand: paste styles.css into that file.
Usage
Import it and pass your content. The props that matter most are listed next.
"use client";
import { RadarChart } from "@/components/ui/lumen/charts/radar-chart";
const scores = [
{ measure: "Speed", now: 86, last: 71 },
{ measure: "Reliability", now: 92, last: 88 },
{ measure: "Price", now: 64, last: 66 },
{ measure: "Support", now: 79, last: 58 },
{ measure: "Docs", now: 74, last: 52 },
];
const config = {
now: { label: "This release", color: "var(--chart-1)" },
last: { label: "Last release", color: "var(--chart-3)" },
};
export function ReleaseScores() {
return <RadarChart data={scores} axis="measure" config={config} max={100} label="Scores by measure" />;
}Props
data / axis–Row[] / keyof RowOne row per axis, and the field that names it.
config–ChartConfigOne entry per profile with its label and color (var(--chart-N)) or theme { light, dark }.
series–string[]Which config keys to draw, in order. Default: all. Two or three read best.
max–numberThe outer ring's value. Default: the largest value rounded up; set 100 for scores.
valueFormat–StatFormat | (n) => stringNumbers on the rings, tooltip, table and summary.
grid / ticks"polygon" / true"polygon" | "circle" / booleanRing shape, and ring values along the first axis.
Show all 12 propsShow fewer
legend"toggle" with 2+ profiles"toggle" | "static" | "none"Toggle buttons hide a profile; pointing at or focusing one brings it forward.
tooltiptruebooleanThe profiles on the active axis, highest first, with the lead.
labels–{ lead?, tie? }Words for the lead line, for i18n: lead(leader, gap, runnerUp).
height320numberPlot height in px; the width follows the container.
motion"full""full" | "subtle" | "off"Reduced motion always wins.
loading / error / emptyText / label / axisLabel–boolean / string / string / string / stringStates in words with the height held; the chart's accessible name; the axis column's name in the table.
Source
components/ui/lumen/charts/radar-chart.tsx
This component is included with Pro.
Try the live preview above. Get Pro to install the source.