Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

310
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda