I am working on this example: http://www.highcharts.com/demo/combo
When I hover to some color pie chart, i.e. blue the tooltip is
Jane: 13 fruits
However when I hover to first colum (blue one at apples) tooltip is:
Apples: 3
Its Jane’s apples. So how can I change it to:
Jane : 3 apples
Any ideas?
PS:
The tooltip formatter used at example is:
tooltip: {
formatter: function() {
var s;
if (this.point.name) { // the pie chart
s = ''+
this.point.name +': '+ this.y +' fruits';
} else {
s = ''+
this.x +': '+ this.y;
}
return s;
}
}
You can get the
seriesdata usingthis.series.someAttr.So, do the following:
demo