PitchKit
API Reference@pitchkit/reactInterfaces

MomentumBaseProps

Defined in: packages/react/src/momentum-types.ts:52

Type Parameters

Type Parameter
T
E

Properties

PropertyModifierTypeDescriptionDefined in
appearance?readonlyMomentumAppearance-packages/react/src/momentum-types.ts:90
aspectRatio?readonlynumberShape of the responsive box. Default 3, or 1.8 below 420px widepackages/react/src/momentum-types.ts:87
children?readonlyReactNodeAnnotations, positioned through useMomentumChart().packages/react/src/momentum-types.ts:95
className?readonlystring-packages/react/src/momentum-types.ts:93
datareadonlyreadonly T[]Every sample, in one list, each tagged with its period by period: the shape a feed gives. Samples can be at any interval and in any order, and a period's width is set by its own minutes, so stoppage time widens a half.packages/react/src/momentum-types.ts:58
height?readonlynumber-packages/react/src/momentum-types.ts:85
maxValue?readonlynumberHalf the value axis. Defaults to the largest magnitude, rounded up.packages/react/src/momentum-types.ts:79
padding?readonlyChartPadding-packages/react/src/momentum-types.ts:88
periodreadonlyAccessor<T, number>The period the sample is in: 1 for the first half, 2 for the second, 3 and 4 for extra time. StatsBomb's period is already this. Each period is its own panel. Every period from 1 to the highest one in the data gets one, at least two, so an empty period keeps its place. A sample without a whole-number period from 1 is dropped.packages/react/src/momentum-types.ts:69
periodRanges?readonlyReadonly<Record<number, Partial<MomentumRange>>>Overrides a period's start or end, in match minutes, keyed by period number: { 2: { end: 95 } }. By default a period starts at its nominal minute and ends at the later of its nominal end and its last sample.packages/react/src/momentum-types.ts:77
teams?readonlyMomentumTeams-packages/react/src/momentum-types.ts:81
timereadonlyAccessor<T, number>Match minute the sample starts at, as the feed numbers it. Fractional is fine.packages/react/src/momentum-types.ts:60
tooltip?readonly(hover) => ReactNodeReplaces the default readout body.packages/react/src/momentum-types.ts:92
valuereadonlyAccessor<T, number>Signed: positive is the home side's pressure, negative the away side's.packages/react/src/momentum-types.ts:71
width?readonlynumberFixed pixel size — the opt-out from the responsive default. Provide both, or neither.packages/react/src/momentum-types.ts:84

On this page