score:2

Accepted answer

after sebastian bochan pointed out that "shared: true" is part of the issue i looked into this some more and here is what i found out and how i ultimately solved the problem. for whatever reason the fiddle linked in the question was screwed up.

shared: true

is required if there is more than one series in the chart and one wants to have all series displayed in the same tooltip. in my case this was a leftover from other plots i made but not needed in the single series plots my original question was about.

for single series plots "shared: true" should not be used. it defaults to "shared: false" and thus "shared" doesn't need to be included at all.

here's the formatter code which i am now using and it works for all single series, whether it's spline or scatter:

tooltip: {
    crosshairs: true,
    formatter: function () {
        return '<b>' + highcharts.dateformat('%e. %b %y, %h:00', this.x) +
                '</b> ' + this.series.name + ': ' + this.y + ' deg';
    }
},

see http://jsfiddle.net/reality_extractor/pnfyl/ for both spline and scatter plots in action.


Related Query

More Query from same tag