Interface: CandlestickChartOptions
Defined in: src/mobjects/graphing/CandlestickChart.ts:32
Options for creating a CandlestickChart.
Properties
axisColor?
optionalaxisColor:string
Defined in: src/mobjects/graphing/CandlestickChart.ts:56
Color for the axes and labels. Default: WHITE
bearishColor?
optionalbearishColor:string
Defined in: src/mobjects/graphing/CandlestickChart.ts:38
Fill/stroke color for bearish candles (close < open). Default: RED.
bodyFillOpacity?
optionalbodyFillOpacity:number
Defined in: src/mobjects/graphing/CandlestickChart.ts:48
Fill opacity of the candle body. Default: 0.9
bodyStrokeWidth?
optionalbodyStrokeWidth:number
Defined in: src/mobjects/graphing/CandlestickChart.ts:46
Stroke width of the candle body outline. Default: 1.5
bullishColor?
optionalbullishColor:string
Defined in: src/mobjects/graphing/CandlestickChart.ts:36
Fill/stroke color for bullish candles (close >= open). Default: GREEN.
candleSpacing?
optionalcandleSpacing:number
Defined in: src/mobjects/graphing/CandlestickChart.ts:42
Gap between adjacent candles. Default: 0.2
candleWidth?
optionalcandleWidth:number
Defined in: src/mobjects/graphing/CandlestickChart.ts:40
Width of each candle body. Default: 0.5
data
data:
OHLC[]
Defined in: src/mobjects/graphing/CandlestickChart.ts:34
Array of OHLC data points, left to right.
height?
optionalheight:number
Defined in: src/mobjects/graphing/CandlestickChart.ts:52
Visual height of the price area. Default: 5
includeYLabels?
optionalincludeYLabels:boolean
Defined in: src/mobjects/graphing/CandlestickChart.ts:60
Whether to include y-axis price labels. Default: true
includeYTicks?
optionalincludeYTicks:boolean
Defined in: src/mobjects/graphing/CandlestickChart.ts:58
Whether to include y-axis tick marks. Default: true
showVolume?
optionalshowVolume:boolean
Defined in: src/mobjects/graphing/CandlestickChart.ts:68
Whether to draw volume bars below the price area. Default: false
volumeHeight?
optionalvolumeHeight:number
Defined in: src/mobjects/graphing/CandlestickChart.ts:70
Visual height of the volume area. Default: 1
wickWidth?
optionalwickWidth:number
Defined in: src/mobjects/graphing/CandlestickChart.ts:44
Stroke width of the high/low wick line. Default: 2
width?
optionalwidth:number
Defined in: src/mobjects/graphing/CandlestickChart.ts:54
Visual width of the chart area. Default: 8
xLabelFontSize?
optionalxLabelFontSize:number
Defined in: src/mobjects/graphing/CandlestickChart.ts:66
Font size for x-axis labels. Default: 20
xLabels?
optionalxLabels:string[]
Defined in: src/mobjects/graphing/CandlestickChart.ts:64
Explicit x-axis labels (overrides date/label on the data). Default: []
yLabelFontSize?
optionalyLabelFontSize:number
Defined in: src/mobjects/graphing/CandlestickChart.ts:62
Font size for y-axis labels. Default: 20
yRange?
optionalyRange: [number,number,number]
Defined in: src/mobjects/graphing/CandlestickChart.ts:50
Y-axis (price) range as [min, max, step]. Default: auto-scaled from data.