Pane Api - SpartaCommodities/Trading_view_wiki GitHub Wiki
Pane API
hasMainSeries()
Returns true if the pane contains the main series.
getLeftPriceScales()
Returns an array of the PriceScaleApi instances that allows interaction with left price scales. The array may be empty if there is not any price scale on the left side of the pane.
getRightPriceScales()
Returns an array of the PriceScaleApi instances that allows interaction with right price scales. The array may be empty if there is not any price scale on the right side of the pane.
getMainSourcePriceScale()
Returns:
- an instance of the PriceScaleApi that allows you to interact with the price scale of the main source
nullif the main source is not attached to any price scale (it is in 'No Scale' mode)
getHeight()
Starting from version 1.15.
Returns the pane's height.
setHeight()
Starting from version 1.15.
Sets the pane's height.
paneIndex()
Starting from version 1.15.
Returns the pane's index, it's a number between 0 and all panes count - 1.
moveTo(paneIndex)
Starting from version 1.15.
Moves the pane to a new position, paneIndex should be a number between 0 and all panes count - 1.
collapse()
Reduces the size of a pane to its minimum.
restore()
Restores the size of a pane that was previously collapsed.