PizzaMetric
Defined in: packages/react/src/pizza-types.ts:9
One slice. Values are drawn as given — PitchKit computes no per-90s or
percentiles. min/max default to 0–100, which is what a percentile is;
lowerIsBetter flips the slice so a long one is always the better one.
Extends
Properties
| Property | Modifier | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|---|
group? | readonly | string | A category such as "Attacking". With one series the slices take their group's colour; with several, the group shows as an arc on the rim. | - | packages/react/src/pizza-types.ts:18 |
id | readonly | string | Key into each series' values, and the stable identity of the slice. | - | packages/react/src/pizza-types.ts:11 |
label? | readonly | string | Defaults to id. | - | packages/react/src/pizza-types.ts:13 |
lowerIsBetter? | readonly | boolean | Flips the axis so the better value is always outward: a player with few turnovers reaches the rim, not the centre. | PolarRange.lowerIsBetter | packages/core/src/polar/metric.ts:15 |
max? | readonly | number | Default 100 | PolarRange.max | packages/core/src/polar/metric.ts:10 |
min? | readonly | number | Default 0 | PolarRange.min | packages/core/src/polar/metric.ts:8 |