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.
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.
- indexrequisnumber
- Index in the data array.
- datumrequisIChartCandlestickDatum
- The raw OHLC datum.
- cxrequisnumber
- Center X of the slot.
- bodyXrequisnumber
- Body left X.
- bodyYrequisnumber
- Body top Y (min of yOpen, yClose).
- bodyWidthrequisnumber
- Body width in SVG-px.
- bodyHeightrequisnumber
- Body height in SVG-px.
- wickToprequisnumber
- Wick top Y (yHigh).
- wickBottomrequisnumber
- Wick bottom Y (yLow).
- colorrequisstring
- Resolved CSS colour string for the candle.
- isBullishrequisboolean
- true when close >= open.
- changerequisnumber
- Pre-computed change (close - open).
- changePctrequisnumber
- 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