ValyroUI Русская версия

Radar Chart

Radar charts for comparing profiles. Pro · Charts and analytics › Shares and composition

Installation

npx valyro-cli@latest login
npx valyro-cli@latest add radar-chart
npm install valyro-ui-pro

import 'valyro-ui-pro/styles.css';
import { RadarChart } from 'valyro-ui-pro';

Props

PropTypeDefault
data *T[]One row per axis (3–12 read well).
axis *AField naming each axis.
series *ChartSeries<T>[]One filled polygon per series.
maxnumberValue at the outer ring. Default: a nice number above the largest value.
levelsnumber4Number of grid rings. Default 4.
gridShape'polygon' | 'circle'Default: the theme's --ui-radar-chart-grid (polygon in Vercel, circle in Glass).
heightnumber320Chart height in px; the radar is centred in the container width. Default 320.
valueFormatterValueFormatterFormats values in the tooltip and table; ring labels use compact numbers by default.
localestringBCP 47 locale for the default number formatting. Default: the ThemeProvider locale, then the browser's.
axisLabelstringHeader of the axis column in the accessible data table. Default: the axis key.
labelsPartial<RadarChartLabels>Overrides for the built-in strings.
showLegendbooleanDefault: shown when there is more than one series. Click an item to hide its series.
loadingbooleanfalseShows a placeholder of the same height while data loads.
ariaLabel *stringAccessible name of the chart (also the caption of its sr-only data table).

Related components

Previous: Sankey Chart · Next: Heatmap · All Charts and analytics