Vesture

Charts

RadarChartNew in 0.8.0

Compare several series across 3+ axes on a radial grid, with polygon or circular rings and per-axis maxima.

RadarChart

Preview

Rings 4
Fill 25%
2.557.510QualitySpeedCostSupportSecurityDocsVesture · Quality: 9Vesture · Speed: 8Vesture · Cost: 7Vesture · Support: 6Vesture · Security: 9Vesture · Docs: 8Rival · Quality: 6Rival · Speed: 7Rival · Cost: 9Rival · Support: 8Rival · Security: 5Rival · Docs: 4In-house · Quality: 5In-house · Speed: 4In-house · Cost: 10In-house · Support: 3In-house · Security: 6In-house · Docs: 3

Usage

tsx
import { RadarChart } from "@vesture/react";

<RadarChart
  max={10}
  axes={[{ key: "q", label: "Quality" }, { key: "s", label: "Speed" }, { key: "c", label: "Cost" }]}
  series={[{ key: "a", label: "Us", values: [9, 7, 6] }]}
/>

Props

PropTypeDefaultDescription
axes{ key; label; max? }[]—Required, at least 3.
series{ key; label; color?; values: number[] }[]—Required. One value per axis.
sizenumber360Square drawing size in px.
maxnumber—Shared maximum; falls back to the data maximum.
ringsnumber4Number of concentric rings.
shape"polygon" | "circle""polygon"Ring geometry.
fillOpacity / strokeWidthnumber0.2 / 2Series styling.
showDots / showRingLabels / showLegendboolean—Toggle chrome.
formatValue(v: number) => string—Ring labels and tooltips.