dimitryos
Posts: 3
Joined: Mon Aug 17, 2020 3:02 pm

How can I supress tooltips for an individual series type?

Hi!
Suppose I want to hide tooltips only for the series named "Tributaries" in the "Lines and points in maps" demo.
piotr.m
Posts: 1433
Joined: Mon Nov 18, 2019 8:15 am

Re: How can I supress tooltips for an individual series type?

Hi,

Thanks for contacting us with your question!

Just set enableMouseTracking: false in a specific series options:
https://api.highcharts.com/highmaps/plo ... seTracking

Let me know if it worked for you!

Best Regards
dimitryos
Posts: 3
Joined: Mon Aug 17, 2020 3:02 pm

Re: How can I supress tooltips for an individual series type?

Thank you, Piotr. I'm sorry I have not completely described my problem. I'd like to keep the enableMouseTracking=true because I just want to display this series data in a custom way, so I have to handle mouseOver events for this series. I've found the solution to check the series key in Highcharts.tooltip.formatter and return false in case tooltip is not needed.
But maybe you know some more optimal way?
piotr.m
Posts: 1433
Joined: Mon Nov 18, 2019 8:15 am

Re: How can I supress tooltips for an individual series type?

Hi,

I think using a formatter and excluding a specific series is also a relevant solution!
https://api.highcharts.com/highmaps/tooltip.formatter

Kind Regards
dimitryos
Posts: 3
Joined: Mon Aug 17, 2020 3:02 pm

Re: How can I supress tooltips for an individual series type?

Ok. Thanks again for your opinion. Have a nice day and best regards!
piotr.m
Posts: 1433
Joined: Mon Nov 18, 2019 8:15 am

Re: How can I supress tooltips for an individual series type?

Thx! Feel free to contact us if further needed.

Return to “Highcharts Maps”