# RadarChart Compare profiles across several comparable measures on a shared radial scale. [Interactive guide](/docs/components/radarchart) · Forge 3.2.0 Use the API for your installed version. Run `npx --no-install wss3-forge api --json` inside the project. ## Implementation guidance ### When to use it Use RadarChart to compare profiles across measures that share a meaningful scale. ### How to compose it Choose a consistent spoke order and pass an explicit domain when the measures have known bounds. Keep missing scores null. ### What to verify Verify domains and spoke order match across compared plots. Provide exact values when overlapping profiles make visual comparison difficult. ## Usage ```tsx import { RadarChart } from 'wss3-forge' import type { ChartDatum, ChartSeries, RadarChartProps } from 'wss3-forge' ``` - Put comparable measures on one scale. Use an explicit domain when scores already share a known range. - Each category is a spoke. Put categories in a meaningful order and keep it consistent when comparing profiles. - Use null for missing scores. Add showTable when readers need to compare all exact values across profiles. ```tsx ``` ## Runnable examples ### Release scores on a common scale ```tsx import { RadarChart } from 'wss3-forge' import type { ChartDatum, ChartSeries } from 'wss3-forge' const scores: ChartDatum[] = [ { label: 'Accessibility', values: { baseline: 72, current: 91 } }, { label: 'Reliability', values: { baseline: 81, current: 89 } }, { label: 'Performance', values: { baseline: 78, current: 75 } }, { label: 'Coverage', values: { baseline: null, current: 83 } }, { label: 'Clarity', values: { baseline: 69, current: 92 } }, ] const reviews: ChartSeries[] = [ { key: 'baseline', label: 'Before release' }, { key: 'current', label: 'Current release' }, ] export default function Example() { return () } ``` ## Root package API ### RadarChart Compare profiles across several comparable measures on a shared radial scale. Props type: `RadarChartProps` - `data` — `readonly ChartDatum[]` Ordered spoke labels with values keyed by series. - `series` — `readonly ChartSeries[]` Profiles with labels, colors and optional formatters. - `domain?` — `ChartDomain` Ascending pair of bounds shared by all spokes. - `tickCount?` — `number` Default `4`. Number of concentric grid rings, from 2 to 10. - `showGrid?` — `boolean` Default `true`. - `showLabels?` — `boolean` Default `true`. - `categoryLabel?` — `string` Default `'Category'`. - `title` — `string` - `summary?` — `string` - `size?` — `number` Default `280`. - `showLegend?` — `boolean` - `showTooltip?` — `boolean` - `showTable?` — `boolean` Default `false`. Offer a disclosure with the source values. - `emptyLabel?` — `string` Default `'No data to display.'`. - `className?` — `string` - `style?` — `CSSProperties` ## Related types ```ts export interface ChartDatum { label: string values: Readonly> } export interface ChartSeries { key: string label?: string kind?: 'bar' | 'line' | 'area' color?: string unit?: string formatValue?: (value: number) => string } export type ChartDomain = readonly [min: number, max: number] export interface RadarChartProps extends RadialChartPresentation { data: readonly ChartDatum[] series: readonly ChartSeries[] domain?: ChartDomain tickCount?: number showGrid?: boolean showLabels?: boolean categoryLabel?: string } ```