PitchKit
API Reference@pitchkit/reactInterfaces

MomentumChartContextValue

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

Properties

PropertyModifierTypeDescriptionDefined in
barsreadonlyreadonly readonly MomentumBar[][]One list per period, bars[period - 1]. A bar's index points into data.packages/react/src/momentum-types.ts:141
framereadonlyChartFrameThe bars' plot rectangle, in pixels.packages/react/src/momentum-types.ts:131
panelsreadonlyreadonly MomentumPanel[]-packages/react/src/momentum-types.ts:132
scaleXreadonly(minute, period) => numberMatch minute -> pixel, in the given period (1 for the first half). A minute outside that period is clamped to its edge.packages/react/src/momentum-types.ts:139
scaleYreadonlyLinearScaleValue -> pixel, symmetric about the zero line, already flipped for SVG.packages/react/src/momentum-types.ts:134

On this page