Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

309
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda