Skip to content
peakcharts

RadarChart

Compare one subject across several dimensions at once.

Team skills
Team skillsClick a mark to pin its value; click it again to release. Keyboard: Enter or Space to pin, Escape to release. Data table below.DesignFrontendBackendTestingDocsOps9Design: 7Frontend: 9Backend: 6Testing: 5Docs: 8Ops: 4
Click a mark to pin its value
View data
Team skills
LabelValue
Design7
Frontend9
Backend6
Testing5
Docs8
Ops4
<RadarChart title="Team skills" data={data} />

Usage

RadarChart.tsx
import { RadarChart } from 'peakcharts';
import 'peakcharts/styles.css';

const data = [
  { label: 'Design', value: 7 },
  { label: 'Frontend', value: 9 },
  { label: 'Backend', value: 6 },
  { label: 'Testing', value: 5 },
  { label: 'Docs', value: 8 },
  { label: 'Ops', value: 4 },
];

export default function Example() {
  return <RadarChart title="Team skills" data={data} />;
}

Data

data takes { label: string; value: number; color?: string }[]. Input arrays are never mutated and order is preserved.

  • Values must be non-negative.
  • Needs at least three categories.

Every chart also accepts the common props: description, height, color, variant, animate, formatValue and className.