Disable highcharts tooltip on certain lines, leave it enabled on others?

vulture picture vulture · Aug 24, 2012 · Viewed 31.2k times · Source

I have a Highchart containing multiple lines. I want to disable the tooltip on certain lines, and leave it enabled for others. Is that possible? I see how to disable the tooltip globally, but not by series.

For instance, on the standard line chart example is it possible to disable the tooltip on the red and blue lines but leave it enabled on the other two?

Answer

Mina Gabriel picture Mina Gabriel · Aug 24, 2012

UPDATE

use enableMouseTracking: Boolean

Notice enableMouseTracking: Boolean was introduced after this question was asked

Old Answer

I just Disabled the heights point in the Tokyo series

here is your code

     tooltip: {
            formatter: function() {

                if(this.series.name == 'Tokyo' && this.y == 26.5 ){
                  return false ;
                // to disable the tooltip at a point return false 
                }else {
                    return '<b>'+ this.series.name +'</b><br/>'+
                    this.x +': '+ this.y +'°C';
            }   
            }
        }

jsfiddle