IChartCandlestickCandle

interface
Chart

Resolved per-candle descriptor produced by the geometry engine inside OrigamChartCandlestick. All numeric fields are expressed in SVG user-units; pre-computes change and direction so the template renders without arithmetic.

TypeScript

Définition

La définition TypeScript de l'interface telle que trouvée dans le code source d'origam. Cliquez sur l'icône de copie pour copier l'extrait.

typescript

API

Propriétés

Chaque propriété déclarée par cette interface, avec son type, son caractère optionnel et sa valeur par défaut.

index
requis
number
Index in the data array.
datum
requis
IChartCandlestickDatum
The raw OHLC datum.
cx
requis
number
Center X of the slot.
bodyX
requis
number
Body left X.
bodyY
requis
number
Body top Y (min of yOpen, yClose).
bodyWidth
requis
number
Body width in SVG-px.
bodyHeight
requis
number
Body height in SVG-px.
wickTop
requis
number
Wick top Y (yHigh).
wickBottom
requis
number
Wick bottom Y (yLow).
color
requis
string
Resolved CSS colour string for the candle.
isBullish
requis
boolean
true when close >= open.
change
requis
number
Pre-computed change (close - open).
changePct
requis
number
Pre-computed percentage change.

Écosystème

Utilisé par

Composants et composables qui étendent ou consomment cette interface.

Usage

Exemples

Extraits de code prêts à coller utilisant cette interface.

Reading candle data in a custom tooltip slot

vue