Interface: PriceScaleOptions
Structure that describes price scale options
Properties
autoScale
autoScale:
boolean
Autoscaling is a feature that automatically adjusts a price scale to fit the visible range of data. Note that overlay price scales are always auto-scaled.
Default Value
true
mode
mode:
PriceScaleMode
Price scale mode.
Default Value
{@link PriceScaleMode.Normal}
invertScale
invertScale:
boolean
Invert the price scale, so that a upwards trend is shown as a downwards trend and vice versa. Affects both the price scale and the data on the chart.
Default Value
false
alignLabels
alignLabels:
boolean
Align price scale labels to prevent them from overlapping.
Default Value
true
scaleMargins
scaleMargins:
PriceScaleMargins
Price scale margins.
Default Value
{ bottom: 0.1, top: 0.2 }
Example
chart.priceScale('right').applyOptions({
scaleMargins: {
top: 0.8,
bottom: 0,
},
});
borderVisible
borderVisible:
boolean
Set true to draw a border between the price scale and the chart area.
Default Value
true
borderColor
borderColor:
string
Price scale border color.
Default Value
'#2B2B43'
entireTextOnly
entireTextOnly:
boolean
Show top and bottom corner labels only if entire text is visible.
Default Value
false
visible
visible:
boolean
Indicates if this price scale visible. Ignored by overlay price scales.
Default Value
true
for the right price scale and false
for the left
drawTicks
drawTicks:
boolean
Draw small horizontal line on price axis labels.
Default Value
true