Radar chart
Several measures of a few items on spokes, one polygon per series.
ChartRadar draws one polygon per series over spokes, one spoke per measure. Use it to compare a few items on several measures, such as plans by feature or teams by skill. It draws its own polygon grid, not the horizontal grid lines of the axis charts.
ChartRadar Connecting to the DMS preview…
Usage
import { ChartRadar } from "@antelopejs/interface-dms/base/chart";
static plans = ChartRadar({
title: "$saas.plans.comparison",
fetchUrl: "/api/saas/plans/radar",
fillOpacity: 0.25,
});
The route answers { series } in the shape listed under Data shapes. Wrap the chart in a ChartCard to add a headline value and a comparison.
Options
| Option | Type | Default | Description |
|---|---|---|---|
title Content | string | – | |
description Content | string | – | |
color Appearance | string | string[] | – | |
height Appearance | string | – | |
width Appearance | number | – | |
showTooltip Appearance | boolean | true | |
showLegend Appearance | boolean | true | |
legendPosition Appearance | "top" | "bottom" | – | |
showGrid Appearance | boolean | true | |
yRange.min* Appearance | number | – | |
yRange.max* Appearance | number | – | |
comparisonStyle Appearance | "dashed" | "solid" | "dimmed" | – | |
smooth Appearance | boolean | true | |
curve Appearance | "smooth" | "straight" | "stepline" | – | |
xaxisType Appearance | "category" | "datetime" | "numeric" | – | |
fillOpacity Appearance | number | – |
Recipes
Keep it to a few series
Beyond three or four polygons the radar stops reading. Split the comparison, or use a column chart.
