I have multiple series on the same chart, and I'd like to use the tooltip formatter to make the series names look readable in the tooltip. At the moment, they're displayed in the form Seriesonename and Seriestwoname, but I'd like them to be displayed in the form Series One Name and Series Two Name. I'd still like to keep the tooltip in the same format of Series One Name: 0.567.
I've done something similar to this when formatting the chart labels, where I used the following code:
legend: {
labelFormatter: function () {
return {
'Seriesonename': 'Series One Name',
'Seriestwoname': 'Series Two Name'
}[this.name];
}
}
I've tried doing the same for the tooltip formatter, but I can't seem to get it to work. I suspect it's something to do with the fact that it's a shared tooltip, but I'm not 100% sure.
Any help would be greatly appreciated!
nameattribute of theSeriesitself? - Halvor Holsten Strand