Whether a real price range has been applied (see _scaled).
Returns boolean
Methods
autoscale
autoscale(low:number,high:number):void
Recompute the visible range from data extremes + configured margins.
Parameters
low: number
high: number
Returns void
clampY
clampY(y:number):number
Clamp a y to the pane (used by crosshair/order dragging).
Parameters
y: number
Returns number
format
format(price:number):string
Format a price for axis/label display.
Parameters
price: number
Returns string
panByPixels
panByPixels(dy:number):void
Pan the visible range vertically by dy media px (dragging the plot up/down).
Works in transformed space so it's correct for log scales, and respects
inverted. Switches to manual mode so autoscale stops overriding it.
Parameters
dy: number
Returns void
precision
precision():number
Decimal precision implied by minMove (or the visible range if unset).
Price → y (media px). Higher price → smaller y (top of pane), unless inverted.
Parameters
price: number
Returns number
scaleAroundCenter
scaleAroundCenter(factor:number):void
Manually scale the visible range around its centre. factor > 1 widens the
range (compress / zoom out), < 1 narrows it (expand / zoom in). Switches the
scale to manual mode so autoscale stops overriding it.
Override the numeric formatting used for axis tick labels, the last-price
tag, and price-line labels (e.g. a currency or percent format). Pass null
to restore the default tick-size-aware toFixed.
Whether the range tracks the data (true) or has been set manually (false).