Q:

How to get the highlighted point from shared tooltip formatter, Highcharts

I use shared tooltip(http://api.highcharts.com/highcharts#tooltip.formatter), so that I can loop through the this.points to put all y value in the tooltip:
if (this.points) {
    $.each(this.points, function(i, point) {
        console.log(i, point);
        s += ......//use all the points to construct common tooltip,which has been done
    });

//However, after shared tooltip, how can I get the highlighted point? I use `this` but it always point to the same one.

s += //need To know The highlighted point somewhere to construct the tooltip as well

}

Before selected, the series will be like:

Is there any way inside the tooltip formatter to know which point/index is selected? In the below screenshot, blue one is selected, I need the blue point object data.

A:

Instead of using shared tooltip, try with default one: http://jsfiddle.net/2v0ya6d5/1/
Code:
    tooltip: {
        formatter: function () { 
            var series = this.point.series.chart.series, // get all series 
                index = this.point.series.xData.indexOf(this.point.x), // get index
                str = '';

            // default tooltip
            $.each(series, function(i, s) { 
                str += 'The value for <b>' + s.data[index].category +
                '</b> is <b>' + s.data[index].y + '</b><br>'
            });

            // "this" refers to the selected point:
            str+= 'Selected point? x: ' + this.x + ' y: ' + this.y;

            return str;
        }
    },

