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

217
Vistas
JS Amcharts: How to access LineX tooltipHTML adapter index?

Problem:

I am trying to get the index of the hovered lineX column, seems like there is a way to access that when setting the adapter on the series rather than lineX, sadly target.tooltipDataItem and target.dataItem are both undefined here, not sure how to access that :(

Goal:

I created an "XYChart" with multiple series, the idea that I want to be able to show 1 tooltip for all series when a user hovers over a specific column, so the text in the tooltip will change from one column to another, and taking into account that not all series need to have a value in a specific column, if it did, it would be a piece of cake to insert the tooltip adapter only on the first item in the series.

/**/
chart.cursor.lineX.adapter.add("tooltipHTML", function(text, target){ console.log("index?"); }); 
/**/
about 4 years ago · Juan Pablo Isaza
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