question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Getting e.timeScale(...).unsubscribeVisibleTimeRangeChange is not a function error message

See original GitHub issue

HI, 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:closed
  • Created 2 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
SimonDambergcommented, Nov 17, 2021

@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

0reactions
AurelRebcommented, Jun 3, 2022

@SimonDamberg Hi! sorry for the late reply, I just put your fork in the readme and marked this repo as deprecated. Thank you

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting e.timeScale(...).unsubscribeVisibleTimeRangeChange ...
unsubscribeVisibleTimeRangeChange is not a function error, as I did not implement it in my code. I do not know why I need this?.....
Read more >
d.clear is not a function · Issue #59 · amcharts/amcharts3-react
I am using Multiple panel chart with react using amCharts-react. My Multiple panel chart works fine during first load. But i also get...
Read more >
kaktana-react-lightweight-charts - githubmemory
This library has a conflict with React 18 · Getting e.timeScale(...).unsubscribeVisibleTimeRangeChange is not a function error message.
Read more >
Kaktana kaktana-react-lightweight-charts Issues - Giters
Getting e.timeScale (...).unsubscribeVisibleTimeRangeChange is not a function error message ... AutoWidth does not rezize when component gets smaller.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found