Skip to content
peakcharts

RadialChart

Progress toward a goal, drawn as concentric arcs.

Goal progress
Goal progressClick a mark to pin its value; click it again to release. Keyboard: Enter or Space to pin, Escape to release. Data table below.Scale maximum88Sales: 72Support: 88Hiring: 41Launch: 63
Click a mark to pin its value
Sales 72Support 88Hiring 41Launch 63
View data
Goal progress
LabelValue
Sales72
Support88
Hiring41
Launch63
<RadialChart title="Goal progress" data={data} />

Usage

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

const data = [
  { label: 'Sales', value: 72 },
  { label: 'Support', value: 88 },
  { label: 'Hiring', value: 41 },
  { label: 'Launch', value: 63 },
];

export default function Example() {
  return <RadialChart title="Goal progress" 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.

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