Interface: OhlcOptions
Defined in: layers/ohlc.ts:13
An OHLC bar chart — the western cousin of the candlestick. Each period is a vertical low→high line with a left tick at the open and a right tick at the close, colored up/down by direction. Streams like CandlestickLayer.
Properties
close
close: ArrayLike<number>;Defined in: layers/ohlc.ts:19
downColor?
optional downColor?: string | Color;Defined in: layers/ohlc.ts:25
Close < open color. Default red.
high
high: ArrayLike<number>;Defined in: layers/ohlc.ts:17
lineWidth?
optional lineWidth?: number;Defined in: layers/ohlc.ts:27
Line thickness in CSS px. Default 1.5.
low
low: ArrayLike<number>;Defined in: layers/ohlc.ts:18
name?
optional name?: string;Defined in: layers/ohlc.ts:30
open
open: ArrayLike<number>;Defined in: layers/ohlc.ts:16
renderType?
optional renderType?: RenderType;Defined in: layers/ohlc.ts:29
Buffer-usage hint; set "dynamic" when streaming via setData. Default "static".
upColor?
optional upColor?: string | Color;Defined in: layers/ohlc.ts:23
Close ≥ open color. Default green.
width?
optional width?: number;Defined in: layers/ohlc.ts:21
Total tick span in data units (each open/close tick is half of this). Default 70% of median spacing.
x
x: ArrayLike<number>;Defined in: layers/ohlc.ts:15
Bar positions (data space — e.g. epoch ms on a time axis).
yAxis?
optional yAxis?: string;Defined in: layers/ohlc.ts:31