Correctly handle `overlay: true` in series options while create series to backward compat
See original GitHub issueHi,
I use latest standalone js file from
https://unpkg.com/lightweight-charts@3.0.0/dist/lightweight-charts.standalone.production.js
I wan’t to have an ability to make subscription on scrolling event for load more data to chart.
I found such methods
subscribeVisibleTimeRangeChange
subscribeVisibleLogicalRangeChange
But when i try to call them, i have next error:
Uncaught TypeError: chart.timeScale(...).subscribeVisibleTimeRangeChange is not a function
Can you explain what’s wrong?
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
What's new in 1.4.0 (January 22, 2022) - Pandas
Series.ewm() and DataFrame.ewm() now support a method argument with a 'table' option that performs the windowing operation over an entire DataFrame .
Read more >Ensuring backwards compatibility in distributed systems
Let's look at some ways we can make our web APIs backwards compatible. The robustness principle. To create web APIs that are easy...
Read more >Build a Responsive UI with ConstraintLayout
Notice that as you drag the constraint handle, the Layout Editor shows potential connection anchors and blue overlays. Click one of the Create...
Read more >Use the OverlayFS storage driver - Docker Documentation
The overlay and overlay2 drivers are supported on xfs backing filesystems, but only with d_type=true enabled. Use xfs_info to verify that the ftype...
Read more >DevServer - webpack
This option allows you to allowlist services that are allowed to access the dev server. webpack.config.js module.exports = { //... devServer: ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I found solution, just add
priceScaleId
to second seriesIt looks like we didn’t handle correctly passing
overlay: true
for backward compatibility while creating the series (https://github.com/tradingview/lightweight-charts/blob/master/docs/3.0-breaking-changes.md#creating-overlay), but handle it while applying an options to the series.