appearance? | readonly | MomentumAppearance | - | packages/react/src/momentum-types.ts:90 |
aspectRatio? | readonly | number | Shape of the responsive box. Default 3, or 1.8 below 420px wide | packages/react/src/momentum-types.ts:87 |
children? | readonly | ReactNode | Annotations, positioned through useMomentumChart(). | packages/react/src/momentum-types.ts:95 |
className? | readonly | string | - | packages/react/src/momentum-types.ts:93 |
data | readonly | readonly 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? | readonly | number | - | packages/react/src/momentum-types.ts:85 |
maxValue? | readonly | number | Half the value axis. Defaults to the largest magnitude, rounded up. | packages/react/src/momentum-types.ts:79 |
padding? | readonly | ChartPadding | - | packages/react/src/momentum-types.ts:88 |
period | readonly | Accessor<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? | readonly | Readonly<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? | readonly | MomentumTeams | - | packages/react/src/momentum-types.ts:81 |
time | readonly | Accessor<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) => ReactNode | Replaces the default readout body. | packages/react/src/momentum-types.ts:92 |
value | readonly | Accessor<T, number> | Signed: positive is the home side's pressure, negative the away side's. | packages/react/src/momentum-types.ts:71 |
width? | readonly | number | Fixed pixel size — the opt-out from the responsive default. Provide both, or neither. | packages/react/src/momentum-types.ts:84 |