score:7

Accepted answer

You were almost there. You needed to check the api for the shared tooltip formatter. Put your check for the series you do not want inside the for each:

...
            tooltip: {
                formatter: function () {
                    var s = '<b>' + this.x + '</b>';
                    $.each(this.points, function () {
                        if (this.series.name != 'Water') {
                            s += '<br/>' + this.series.name + ': ' + this.y + 'm';
                        }                       
                    });
                    return s;
                },
                shared: true,
                valueSuffix: ' cm'

            },
...

score:1

No need to customize the tooltipfunction. just add this to the series object which should be hidden:

'tooltip'=> [
            'pointFormat'=> ''
          ]

Related Query

More Query from same tag