You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<!-- ^ using emphasis as headings so we don't have duplicate headers -->
19
+
## 5.0.9
20
+
21
+
**Enhancements**
22
+
23
+
- Added `rightOffsetPixels` option to `HorzScaleOptions`, allowing margin space from the right side of the chart to be set in pixels. This option takes precedence over `rightOffset` and ensures consistent pixel offset when using `fitContent` on charts with different amounts of data. The pixel-based offset remains consistent during zoom operations. (PR [#1957](https://github.com/tradingview/lightweight-charts/pull/1957))
24
+
- Added `pop` method to series API that removes a specified number of data points from the end of the series and returns the removed data. (PR [#1949](https://github.com/tradingview/lightweight-charts/pull/1949), fixes [#1518](https://github.com/tradingview/lightweight-charts/issues/1518), contributed by [@tpunt](https://github.com/tpunt))
25
+
- Enhanced `takeScreenshot` method with two new optional parameters:
26
+
-`addTopLayer` - includes top layer primitives in the screenshot (default: false)
27
+
-`includeCrosshair` - includes the crosshair when `addTopLayer` is enabled (default: false)
- Added `autoScale` option to `SeriesMarkersOptions`, 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](https://github.com/tradingview/lightweight-charts/pull/1940), contributed by [@zbinlin](https://github.com/zbinlin))
30
+
- Added `base` option to price format configuration as an alternative to `minMove`. This helps avoid floating-point precision limitations when dealing with extremely small price movements. (PR [#1952](https://github.com/tradingview/lightweight-charts/pull/1952))
31
+
- Enhanced plugin API with additional functionality:
32
+
- Added `lastValueData()` method to the public series API
33
+
- Exposed `setLineStyle` drawing utility through a new `DrawingUtils` interface
34
+
(PR [#1956](https://github.com/tradingview/lightweight-charts/pull/1956), contributed by [@tpunt](https://github.com/tpunt))
35
+
36
+
**Bug Fixes**
37
+
38
+
- Fixed price scale visible range calculation when in logarithmic scale mode by properly converting the range from log space and handling precision issues with rounding. (PR [#1965](https://github.com/tradingview/lightweight-charts/pull/1965), contributed by [@tpunt](https://github.com/tpunt))
39
+
40
+
**Plugin & Indicator Examples**
41
+
42
+
- Added _Dual Range Histogram Series_ custom plugin example that visualizes paired positive and negative value ranges for each time point using a column-based display. (PR [#1934](https://github.com/tradingview/lightweight-charts/pull/1934))
- Added examples demonstrating how to implement indicators (studies) within Lightweight Charts. See the [Analysis Indicators tutorial](https://tradingview.github.io/lightweight-charts/tutorials#analysis-indicators) for more information. (PR [#1915](https://github.com/tradingview/lightweight-charts/pull/1915))
45
+
46
+
**Contributors**
47
+
48
+
We'd like to thank our external contributors for their valuable contributions to this release:
<!-- ^ using emphasis as headings so we don't have duplicate headers -->
19
+
## 5.0.9
20
+
21
+
**Enhancements**
22
+
23
+
- Added `rightOffsetPixels` option to `HorzScaleOptions`, allowing margin space from the right side of the chart to be set in pixels. This option takes precedence over `rightOffset` and ensures consistent pixel offset when using `fitContent` on charts with different amounts of data. The pixel-based offset remains consistent during zoom operations. (PR [#1957](https://github.com/tradingview/lightweight-charts/pull/1957))
24
+
- Added `pop` method to series API that removes a specified number of data points from the end of the series and returns the removed data. (PR [#1949](https://github.com/tradingview/lightweight-charts/pull/1949), fixes [#1518](https://github.com/tradingview/lightweight-charts/issues/1518), contributed by [@tpunt](https://github.com/tpunt))
25
+
- Enhanced `takeScreenshot` method with two new optional parameters:
26
+
-`addTopLayer` - includes top layer primitives in the screenshot (default: false)
27
+
-`includeCrosshair` - includes the crosshair when `addTopLayer` is enabled (default: false)
- Added `autoScale` option to `SeriesMarkersOptions`, 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](https://github.com/tradingview/lightweight-charts/pull/1940), contributed by [@zbinlin](https://github.com/zbinlin))
30
+
- Added `base` option to price format configuration as an alternative to `minMove`. This helps avoid floating-point precision limitations when dealing with extremely small price movements. (PR [#1952](https://github.com/tradingview/lightweight-charts/pull/1952))
31
+
- Enhanced plugin API with additional functionality:
32
+
- Added `lastValueData()` method to the public series API
33
+
- Exposed `setLineStyle` drawing utility through a new `DrawingUtils` interface
34
+
(PR [#1956](https://github.com/tradingview/lightweight-charts/pull/1956), contributed by [@tpunt](https://github.com/tpunt))
35
+
36
+
**Bug Fixes**
37
+
38
+
- Fixed price scale visible range calculation when in logarithmic scale mode by properly converting the range from log space and handling precision issues with rounding. (PR [#1965](https://github.com/tradingview/lightweight-charts/pull/1965), contributed by [@tpunt](https://github.com/tpunt))
39
+
40
+
**Plugin & Indicator Examples**
41
+
42
+
- Added _Dual Range Histogram Series_ custom plugin example that visualizes paired positive and negative value ranges for each time point using a column-based display. (PR [#1934](https://github.com/tradingview/lightweight-charts/pull/1934))
- Added examples demonstrating how to implement indicators (studies) within Lightweight Charts. See the [Analysis Indicators tutorial](https://tradingview.github.io/lightweight-charts/tutorials#analysis-indicators) for more information. (PR [#1915](https://github.com/tradingview/lightweight-charts/pull/1915))
45
+
46
+
**Contributors**
47
+
48
+
We'd like to thank our external contributors for their valuable contributions to this release:
0 commit comments