github tradingview/lightweight-charts v5.0.8

2 months ago

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 to IChartApi for programmatically adding panes
    • Added setPreserveEmptyPane and preserveEmptyPane methods to control empty pane behavior
    • Added getStretchFactor and setStretchFactor methods to control relative pane sizes
    • Added addCustomSeries and addSeries methods to IPaneApi for creating series directly on a specific pane
    • Updated getHTMLElement to return null 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 additional price scale tick mark formatting capabilities:
    • Added formatTickmarks method to IPriceFormatter interface
    • Added tickmarksPriceFormatter and tickmarksPercentageFormatter options to LocalizationOptionsBase
    • Added tickmarksFormatter option to PriceFormatCustom
    • 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)

Changes since the last published version.

Don't miss a new lightweight-charts release

NewReleases is sending notifications on new releases.