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

216
Visualizações
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 à 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