Options and defaults
ChartOptions
Section titled “ChartOptions”| Option | Default | Notes |
|---|---|---|
autoSize |
true |
Follow container content box via shared ResizeObserver |
width / height |
600 / 300 |
CSS pixels; ignored while autoSize is true |
theme |
"light" |
'light', 'dark', or 'auto' (follows prefers-color-scheme) |
layout.fontSize |
12 |
Axis label font size in CSS pixels |
crosshair.mode |
"normal" |
'normal', 'magnet', 'nearest', or 'hidden' |
priceScale.position |
"right" |
'right' or 'left' |
priceScale.mode |
"normal" |
'normal', 'logarithmic', 'percentage', or 'indexed' |
priceScale.scaleMargins |
{"top":0.1,"bottom":0.1} |
Top and bottom padding fractions of pane height |
timeScale.barSpacing |
6 |
Initial CSS pixels per bar |
timeScale.rightOffset |
0 |
Empty bars to the right of the latest bar |
localization.timeZone |
"UTC" |
IANA zone name, 'UTC', or 'local' |
worker |
true |
true, false, or () => Worker factory |
memoryLimit |
Infinity |
Target byte cap in the data engine (requires datafeed) |
redraw |
"auto" |
'auto' (partial column redraws) or 'full' |
markRenderer |
"webgl2" |
'webgl2', 'webgpu', or 'canvas2d' |
CandlestickOptions
Section titled “CandlestickOptions”| Option | Default |
|---|---|
visible |
true |
priceScaleId |
"default" |
minMove |
0 |
precision |
-1 |
lastValueVisible |
true |
priceLineVisible |
true |
priceLineColor |
"" |
priceLineWidth |
1 |
priceLineStyle |
"dashed" |
upColor |
#26a69a |
downColor |
#ef5350 |
wickVisible |
true |
wickUpColor |
#26a69a |
wickDownColor |
#ef5350 |
borderVisible |
false |
borderUpColor |
#26a69a |
borderDownColor |
#ef5350 |
LineOptions
Section titled “LineOptions”| Option | Default |
|---|---|
visible |
true |
priceScaleId |
"default" |
minMove |
0 |
precision |
-1 |
lastValueVisible |
true |
priceLineVisible |
true |
priceLineColor |
"" |
priceLineWidth |
1 |
priceLineStyle |
"dashed" |
color |
#2962ff |
lineWidth |
2 |
lineStyle |
"solid" |
lineType |
"simple" |
crosshairMarkerVisible |
true |
crosshairMarkerRadius |
4 |
HistogramOptions
Section titled “HistogramOptions”| Option | Default |
|---|---|
visible |
true |
priceScaleId |
"default" |
minMove |
0 |
precision |
-1 |
lastValueVisible |
true |
priceLineVisible |
false |
priceLineColor |
"" |
priceLineWidth |
1 |
priceLineStyle |
"dashed" |
color |
#26a69a |
negativeColor |
"" |
base |
0 |
HeatmapOptions
Section titled “HeatmapOptions”| Option | Default |
|---|---|
visible |
true |
priceScaleId |
"default" |
autoscale |
false |
palette |
"heat" |
valueMin |
null |
valueMax |
null |
valueScale |
"linear" |
opacity |
1 |
maxMarks |
2000000 |
ScatterOptions
Section titled “ScatterOptions”| Option | Default |
|---|---|
visible |
true |
priceScaleId |
"default" |
autoscale |
true |
palette |
"viridis" |
valueMin |
null |
valueMax |
null |
valueScale |
"linear" |
opacity |
1 |
maxMarks |
1000000 |
color |
#2962ff |
pointSize |
3 |
shape |
"square" |
barAlign |
"center" |
colorBy |
"value" |