andrewcolby
Posts: 1
Joined: Wed Mar 31, 2021 12:36 pm

Is it possible to show "No Data"

Hi,

I need a way to format the tooltip to show "No Data" when hovering over a country where there is no number and for the country to not be black or rgb(NaN,NaN,NaN). I can't use 0 as No Data because if there's a number, then we have data on the country.

is this possible?

Many thanks
User avatar
sebastian.h
Posts: 1734
Joined: Fri Aug 07, 2020 7:08 am

Re: Is it possible to show "No Data"

Hi,
Welcome to our forum and thanks for contacting us with your question!

I made a simple demo in which I used tooltip.formatter and added my instruction.
You can use similar for creating your own goals.

Demo:
https://jsfiddle.net/BlackLabel/z3w64b5q/

API References:
https://api.highcharts.com/highmaps/tooltip.formatter

Let me know how are you doing with this.
Best regards.
Sebastian Hajdus
Highcharts Developer

Return to “Highcharts Maps”