Skip to content

Commit fdef142

Browse files
committed
v5.0.9
Update release notes
1 parent 45841af commit fdef142

File tree

5 files changed

+77
-5
lines changed

5 files changed

+77
-5
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"private": true,
3-
"version": "5.0.8",
3+
"version": "5.0.9",
44
"name": "lightweight-charts",
55
"author": "TradingView, Inc.",
66
"license": "Apache-2.0",

website/docs/release-notes.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,42 @@ toc_max_heading_level: 2
1616

1717
<!-- markdownlint-disable no-emphasis-as-heading -->
1818
<!-- ^ 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)
28+
(PR [#1977](https://github.com/tradingview/lightweight-charts/pull/1977))
29+
- 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))
43+
- Added _Pretty Histogram_ plugin example demonstrating non-standard histogram rendering. (PR [#1930](https://github.com/tradingview/lightweight-charts/pull/1930))
44+
- 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:
49+
50+
- [@tpunt](https://github.com/tpunt) (Thomas Punt)
51+
- [@zbinlin](https://github.com/zbinlin) (Colin Cheng)
52+
53+
[Changes since the last published version](https://github.com/tradingview/lightweight-charts/compare/v5.0.8..v5.0.9).
54+
1955
## 5.0.8
2056

2157
**Enhancements**

website/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@
2020
"@types/react": "18.3",
2121
"cross-env": "7.0.3",
2222
"docusaurus-plugin-typedoc": "1.0.1",
23-
"lightweight-charts": "5.0.8",
23+
"lightweight-charts": "5.0.9",
2424
"lightweight-charts-3.8": "npm:lightweight-charts@~3.8.0",
2525
"lightweight-charts-4.0": "npm:lightweight-charts@~4.0.1",
2626
"lightweight-charts-4.1": "npm:lightweight-charts@~4.1.5",
2727
"lightweight-charts-4.2": "npm:lightweight-charts@~4.2.2",
28-
"lightweight-charts-5.0": "npm:[email protected].8",
28+
"lightweight-charts-5.0": "npm:[email protected].9",
2929
"lightweight-charts-local": "file:..",
3030
"prism-react-renderer": "2.4.1",
3131
"raw-loader": "4.0.2",

website/versioned_docs/version-5.0/release-notes.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,42 @@ toc_max_heading_level: 2
1616

1717
<!-- markdownlint-disable no-emphasis-as-heading -->
1818
<!-- ^ 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)
28+
(PR [#1977](https://github.com/tradingview/lightweight-charts/pull/1977))
29+
- 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))
43+
- Added _Pretty Histogram_ plugin example demonstrating non-standard histogram rendering. (PR [#1930](https://github.com/tradingview/lightweight-charts/pull/1930))
44+
- 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:
49+
50+
- [@tpunt](https://github.com/tpunt) (Thomas Punt)
51+
- [@zbinlin](https://github.com/zbinlin) (Colin Cheng)
52+
53+
[Changes since the last published version](https://github.com/tradingview/lightweight-charts/compare/v5.0.8..v5.0.9).
54+
1955
## 5.0.8
2056

2157
**Enhancements**

0 commit comments

Comments
 (0)