--- // `radar` is one of the chart types added in 1.5 (charts.json `type: "radar"`), // rendered through the same demo/Chart.astro wrapper as every other chart. // Composition: the plot on the left, a legend column on the right that also // carries each plan's average — so the card stays short. Each legend entry is // a three-step stack: series name, the figure large and semibold with tabular // numerals so the two averages align digit for digit, a muted uppercase label. `radar-large` extends // the docs radar with an explicit `radar-size` (ApexCharts would leave wide // margins otherwise) and without the built-in bottom legend. import ScreenshotLayout from '../layouts/ScreenshotLayout.astro' import Card from '@ui/Card.astro' import CardHeader from '@ui/CardHeader.astro' import CardTitle from '@ui/CardTitle.astro' import CardSubtitle from '@ui/CardSubtitle.astro' import CardBody from '@ui/CardBody.astro' import Legend from '@ui/Legend.astro' import Subheader from '@ui/Subheader.astro' import Chart from '@components/demo/Chart.astro' // Series order and colors follow the `radar` entry in charts.json; the // averages are computed from its data. const plans = [ { name: 'Pro', color: 'primary', average: 69 }, { name: 'Enterprise', color: 'green', average: 83 }, ] ---
Plan comparison Feature scores, 0–100, Pro against Enterprise
{ plans.map((plan) => (
{plan.name}
{plan.average}
Average score
)) }