sbnq9
Posts: 4
Joined: Tue Aug 31, 2021 8:31 pm

nullFormat/nullFormatter is not working in highstock

Hi ,
Is it possible to show tooltip when there is null value in the series in stock chart.
tried nullFormat/nullFormatter, It's not working.

https://jsfiddle.net/pL6s05wv/

Can anyone help how to show tooltip with custom message.
mateusz.b
Posts: 2006
Joined: Tue Jul 13, 2021 11:34 am

Re: nullFormat/nullFormatter is not working in highstock

Hello sbnq9,

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

nullFormat and nullFormater don't work in this case, because they aren't available for this type of series. I know you can find them in API, but that is most likely a docs bug and it will be reported.

These options work properly for series like heatmap and tilemap, where you can easily tell where null value is located. For series like line it would be hard, because null values are simply represented by breaks in the line.

Let me know if you have any further questions!
Best regards!
Mateusz Bernacik
Highcharts Developer
sbnq9
Posts: 4
Joined: Tue Aug 31, 2021 8:31 pm

Re: nullFormat/nullFormatter is not working in highstock

Is there a way to show tooltip for null values/connect null path?

When using formatter, either it is showing previous value or next value.
mateusz.b
Posts: 2006
Joined: Tue Jul 13, 2021 11:34 am

Re: nullFormat/nullFormatter is not working in highstock

Hi sbnq9,

It could be possible but could you explain how do you see it? Where should be that tooltip located? How the path should be connected? Any kind of illustration would be greatly appreciated here, because I cant really understand where would you locate those elements. As I have mentioned before, in this type of series null values are shown by breaks in the line (https://jsfiddle.net/BlackLabel/x6u539cy/).

Thanks in advance for any additional informations.

Best regards!
Mateusz Bernacik
Highcharts Developer
sbnq9
Posts: 4
Joined: Tue Aug 31, 2021 8:31 pm

Re: nullFormat/nullFormatter is not working in highstock

Thanks for the response.

https://jsfiddle.net/qb69w3h2/

In the above fiddle when using connectNulls true option and hovering those values tooltip is not showing up.

For example, When hover on Jan 3rd/Jan 4th tooltip is showing for Jan2nd value. Is there any possibility to show tooltip for Jan 3rd and 4th where the value is null?
mateusz.b
Posts: 2006
Joined: Tue Jul 13, 2021 11:34 am

Re: nullFormat/nullFormatter is not working in highstock

Hello sbnq9,

Frankly speaking I don't think it is possible. Even though the line path is connected, there are no points where you would display the tooltip.

Best regards!
Mateusz Bernacik
Highcharts Developer

Return to “Highcharts Stock”