Getting e.timeScale(...).unsubscribeVisibleTimeRangeChange is not a function error message
See original GitHub issueHI, I am getting e.timeScale(…).unsubscribeVisibleTimeRangeChange is not a function error, as I did not implement it in my code. I do not know why I need this?.. The scenario was, At first my chart will displayed nicely as I wanted, then when I click at other data, it should display new chart but instead I get this error. So I think I will implement unsubscribeVisibleTimeRangeChange function but dont know how…
This is how the code look like
` <Chart
lineSeries={this.getChartData1("line", mainData)}
options={optionMaster}
autoWidth
height={indexMode ? 320 : 240}
onCrosshairMove={(e) => this.createLineChart(e, mainData)}
onClick={(e) => this.openWindow(e, mainData)}
( ....unsubscriberVisibleTimeRangeChange..how to call from here?...)
/>`
This is my options
optionMaster: { alignLabels: true, localization: { dateFormat: "dd MMM 'yy", }, handleScroll: { mouseWheel: false, pressedMouseMove: false, horzTouchDrag: false, vertTouchDrag: false, }, handleScale: { axisPressedMouseMove: false, mouseWheel: false, pinch: false, }, priceScale: { position: "left", autoScale: true, invertScale: true, alignLabels: false, borderVisible: false, borderColor: "#555ffd", scaleMargins: { top: 0.3, bottom: 0.25, }, }, timeScale: { fixLeftEdge: true, lockVisibleTimeRangeOnResize: true, }, },
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (2 by maintainers)
@augiaugi @nisa99 Since this repo seems to be stale, we have created a fork with updated lightweight-charts versions. This seems to have fixed the bugs we were having. Please check it out at https://github.com/Qognica/qognicafinance-react-lightweight-charts
@SimonDamberg Hi! sorry for the late reply, I just put your fork in the readme and marked this repo as deprecated. Thank you