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

219
Views
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
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!