score:51

Accepted answer

While I am uncertain as to why your solution doesn't work, I can propose an alternative solution.

The tooltip formatter function has access to a number of different parameters. Instead of this.x, you could use this.point.name.

For example:

formatter: function() {
    // If you want to see what is available in the formatter, you can
    // examine the `this` variable.
    //     console.log(this);

    return '<b>'+ Highcharts.numberFormat(this.y, 0) +'</b><br/>'+
        'in year: '+ this.point.name;
}

Related Query

More Query from same tag