New
v5.0.9
Enhancements
- Added
rightOffsetPixelsoption toHorzScaleOptions, allowing margin space from the right side of the chart to be set in pixels. This option takes precedence overrightOffsetand ensures consistent pixel offset when usingfitContenton charts with different amounts of data. The pixel-based offset remains consistent during zoom operations. (PR #1957) - Added
popmethod to series API that removes a specified number of data points from the end of the series and returns the removed data. (PR #1949, fixes #1518, contributed by @tpunt) - Enhanced
takeScreenshotmethod with two new optional parameters:addTopLayer- includes top layer primitives in the screenshot (default: false)includeCrosshair- includes the crosshair whenaddTopLayeris enabled (default: false) (PR #1977)
- Added
autoScaleoption toSeriesMarkersOptions, allowing control over whether markers are included in the auto-scaling calculation of the price scale. When enabled (default: true), the chart will adjust its scale to ensure markers are fully visible. (PR #1940, contributed by @zbinlin)