well... I am new with HighCharts. I read all the post but I am still struggling how to show additional data on the tooltip.
I created a quick sample plotting a 2D chart, the first 2 columns are x and y, and the other 3 columns are additional information I want to display on the tool-tip https://jsfiddle.net/oscjara/0qnwxgsh/
Highcharts.chart('container', {
tooltip: {
shared: false,
headerFormat: '<b>{series.name}</b><br>',
valueDecimals: 2,
formatter: function() {
return '<b>' + this.series.name + '</b><br>' +
'X: ' + this.x + ' - ' +
'Y: ' + this.y + '<br>'+
'Z: ' + this.z;
}
},
series: [{
data: [
[0, 29.9, 0.21, 125.54, -0.2],
[1.2, 71.5, 0.25, 254.01, -21.2],
[..., ..., ..., ..., ...]]
}]
});
The array is plot a 2D chart with additional information, it is not for a 3D chart or multidimensional plot.
Any help will be highly appreciated.