PitchKit
API Reference@pitchkit/reactInterfaces

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

PropertyModifierTypeDescriptionInherited fromDefined in
group?readonlystringA 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
idreadonlystringKey into each series' values, and the stable identity of the slice.-packages/react/src/pizza-types.ts:11
label?readonlystringDefaults to id.-packages/react/src/pizza-types.ts:13
lowerIsBetter?readonlybooleanFlips the axis so the better value is always outward: a player with few turnovers reaches the rim, not the centre.PolarRange.lowerIsBetterpackages/core/src/polar/metric.ts:15
max?readonlynumberDefault 100PolarRange.maxpackages/core/src/polar/metric.ts:10
min?readonlynumberDefault 0PolarRange.minpackages/core/src/polar/metric.ts:8

On this page