Enhancements
- Improved pane API with several new methods and options:
- Added
addDefaultPane
option to chart options, allowing creation of charts with no initial panes - Added
addPane
method toIChartApi
for programmatically adding panes - Added
setPreserveEmptyPane
andpreserveEmptyPane
methods to control empty pane behavior - Added
getStretchFactor
andsetStretchFactor
methods to control relative pane sizes - Added
addCustomSeries
andaddSeries
methods toIPaneApi
for creating series directly on a specific pane - Updated
getHTMLElement
to returnnull
when a pane hasn't been created yet - These improvements provide greater flexibility when working with multi-pane charts
(PR #1894, fixes #1898, #1896, #1872, #1907)
- Added
- Added additional price scale tick mark formatting capabilities:
- Added
formatTickmarks
method toIPriceFormatter
interface - Added
tickmarksPriceFormatter
andtickmarksPercentageFormatter
options toLocalizationOptionsBase
- Added
tickmarksFormatter
option toPriceFormatCustom
- These new formatters provide all tick mark values at once, allowing for context-aware formatting decisions such as determining the optimal precision level needed
(PR #1903)
- Added