Radar chart
Several criteria around a centre. Good for profiles of two or three items.
The smallest code that works. change the code, then press Run
In your framework
import { Chart } from 'nervure/react';
const spec = {
type: 'radar',
indicators: [
{ name: 'Speed', max: 100 },
{ name: 'Range', max: 100 },
{ name: 'Comfort', max: 100 },
{ name: 'Price', max: 100 },
{ name: 'Safety', max: 100 },
{ name: 'Design', max: 100 },
],
series: [
{ name: '2025', values: [66, 58, 45, 64, 42, 42] },
{ name: '2026', values: [72, 67, 48, 49, 47, 47] },
],
};
export default function Example() {
return <Chart spec={spec} style={{ height: 340 }} />;
}Or import this chart alone: what each import weighs.
Options
Beside the fields shared by every chart (title, format, heading, export…), type radar takes:
interface RadarSpec extends Base {
type: 'radar';
indicators: { name: string; max?: number }[];
series: { name: string; values: number[]; color?: string }[];
}Style it
- Colours:
theme.palette,chart.setColor(name, colour), or--nervure-palettein your CSS. More - Marks:
[data-series="name"], parts:[data-part="axes"],legend,series. What you change is kept in exports. - Movement:
animation: falsedraws at once. More - Files:
chart.download('png'),svg,csv. More