RadarChartProps
Defined in: packages/react/src/radar-types.ts:64
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
appearance? | readonly | RadarAppearance | - | packages/react/src/radar-types.ts:89 |
aspectRatio? | readonly | number | Shape of the responsive box. Default 1 | packages/react/src/radar-types.ts:88 |
children? | readonly | ReactNode | Annotations, positioned through useRadarChart(). | packages/react/src/radar-types.ts:92 |
className? | readonly | string | - | packages/react/src/radar-types.ts:90 |
format? | readonly | (value, metric) => string | Text for ring values and the readout. Defaults to at most two decimals. | packages/react/src/radar-types.ts:74 |
height? | readonly | number | - | packages/react/src/radar-types.ts:86 |
labelRotation? | readonly | LabelRotation | How metric labels and ring values sit around the rim. Default "tangent" | packages/react/src/radar-types.ts:72 |
metrics | readonly | readonly RadarMetric[] | The axes, clockwise from the top. Each has its own range; at least three. | packages/react/src/radar-types.ts:66 |
onSelectedChange? | readonly | (selection) => void | - | packages/react/src/radar-types.ts:82 |
renderDetail? | readonly | (context) => ReactNode | Makes axis labels clickable: activating one replaces the chart with what this returns, with a Back button. Without it nothing is clickable. | packages/react/src/radar-types.ts:79 |
rings? | readonly | number | Range rings between the centre circle and the rim. Default 4 | packages/react/src/radar-types.ts:70 |
selected? | readonly | RadarSelection | null | Controlled selection; null shows the chart. Omit for uncontrolled. | packages/react/src/radar-types.ts:81 |
series | readonly | readonly RadarSeries[] | One shape per series. Readable up to three; more draws, with a development warning. | packages/react/src/radar-types.ts:68 |
width? | readonly | number | Fixed pixel size — the opt-out from the responsive default. Provide both, or neither. | packages/react/src/radar-types.ts:85 |