@pond-ts/charts API Reference
    Preparing search index...

    Interface CandleStyle

    A resolved candlestick style (Candlestick). A candle is unreadable in one colour — rising vs falling must differ to mean anything — so the style is a pair: rising (close > open) and falling (close < open), each a body (the open→close rectangle / the OHLC bar) and a wick (the high–low line / the bar's stem). neutral styles a doji (open === close); it falls back to rising when unset. bodyWidth is the body's fraction of the candle slot (0–1; the wick always sits at the slot centre) — omitted ⇒ 0.8. wickWidth is the wick / bar stroke width in px.

    With colorBy='series' the direction split is bypassed and every candle draws in the rising colours (one colour = one series, for a candle sitting beside coloured lines).

    interface CandleStyle {
        bodyWidth?: number;
        falling: { body: string; wick: string };
        neutral?: { body: string; wick: string };
        rising: { body: string; wick: string };
        wickWidth: number;
    }
    Index

    Properties

    bodyWidth?: number

    Body width as a fraction of the candle slot (0–1). Omitted ⇒ 0.8.

    falling: { body: string; wick: string }

    Falling candle (close < open) — body + wick colours.

    neutral?: { body: string; wick: string }

    Doji (open === close) — body + wick colours; falls back to rising if unset.

    rising: { body: string; wick: string }

    Rising candle (close > open) — body + wick colours. Also the single colour under colorBy='series'.

    wickWidth: number

    Wick / OHLC-bar stroke width in px.