Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

312
Views
A way to get chart context from subscribeVisibleTimeRangeChange

I got a groups of charts on my page and when the callback for chart.timeScale().subscribeVisibleTimeRangeChange goes off, I need to know what chart exactly fired the event.

The callback's params got only raw time range bounds without any info about the event's origin. Is there anything I'm missing? Or this is just impossible to achieve? Thaanks!

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

The library doesn't provide this information in the callback, but you can handle it from your side easily by binding a chart to the callback, for example:

chart.timeScale().subscribeVisibleTimeRangeChange(callback.bind(null, chart));

Alternatively you could wrap a callback function with another function and pass an argument to it:

chart.timeScale().subscribeVisibleTimeRangeChange((...args) => callback(chart, ...args);
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!