import { RadarChart } from "@senvenli/react/charts";
const SCORES = [
{ measure: "Quality", supplier: 8.6, average: 7.1 },
{ measure: "Delivery", supplier: 7.2, average: 7.4 },
{ measure: "Price", supplier: 6.1, average: 6.8 },
{ measure: "Support", supplier: 9.0, average: 6.5 },
{ measure: "Flexibility", supplier: 7.8, average: 6.2 },
{ measure: "Sustainability", supplier: 8.1, average: 5.9 },
];
export default function Example() {
return (
<RadarChart
title="Supplier scorecard"
period="2026 review"
data={SCORES}
dimension="measure"
categories={["supplier", "average"]}
labels={{ supplier: "Northwind Paper", average: "Supplier average" }}
max={10}
/>
);
}import { RadarChart } from "@senvenli/react/charts";Examples
One profile
A single shape, for strengths and gaps at a glance.import { RadarChart } from "@senvenli/react/charts";
const SATISFACTION = [
{ area: "Checkout", score: 88 },
{ area: "Delivery", score: 74 },
{ area: "Product quality", score: 91 },
{ area: "Support", score: 67 },
{ area: "Returns", score: 59 },
];
const percent = new Intl.NumberFormat("en", { style: "percent" });
export default function Example() {
return (
<RadarChart
title="Customer satisfaction"
period="Q1 2026 survey"
data={SATISFACTION}
dimension="area"
categories={["score"]}
labels={{ score: "Satisfied customers" }}
max={100}
valueFormatter={(value) => percent.format(value / 100)}
/>
);
}Guidelines
When to use it
- Comparing two or three profiles on five to eight measures.
Use something else when
- Precise comparison matters more than shape. Bar chart
Accessibility
Built in
- A "Show as table" button shows the same data as a table, which screen readers get by default.
You provide
- A title that says what the figure is.
API reference
RadarChart
| Prop | Type | Default | Description |
|---|---|---|---|
title | string | – | What the chart shows, over it; leave it out when a card or a heading already says so. |
aria-label | string | – | Names the chart when it has no visible |
period | string | – | |
isLoading | boolean | – | |
emptyState | React.ReactNode | – | Shown instead of the plot when there is no data: an |
height | number | 280 | |
dataRequired | readonly T[] | – | One row per dimension (five to eight). |
dimensionRequired | keyof T & string | – | The dimension's name key. |
categoriesRequired | readonly (keyof T & string)[] | – | One or two profiles: the first is the main one, a second is the comparison. |
labels | Readonly<Partial<Record<string, string>>> | – | |
maxRequired | number | – | The shared scale's top. |
valueFormatter | ChartValueFormatter | plain |
titlestringWhat the chart shows, over it; leave it out when a card or a heading already says so.
aria-labelstringNames the chart when it has no visible
title(a card's heading already says what it shows).periodstringisLoadingbooleanemptyStateReact.ReactNodeShown instead of the plot when there is no data: an
EmptyState size="small"or text; "No data" by default.heightnumberDefault280dataRequiredreadonly T[]One row per dimension (five to eight).
dimensionRequiredkeyof T & stringThe dimension's name key.
categoriesRequiredreadonly (keyof T & string)[]One or two profiles: the first is the main one, a second is the comparison.
labelsReadonly<Partial<Record<string, string>>>maxRequirednumberThe shared scale's top.
valueFormatterChartValueFormatterDefaultplain