For tooltips, check out the highcharts data api , specifically number 2 on the list. If this does not reduce it for you, you can pass an array of objects in which you specify the data you want to receive. Then the formatting is easy to reference. Here JSfiddle shows how to refer to names when they are in your data array.
Format element
formatter: function () { var s = ""; $.each(this.points, function (i, point) { s += point.point.nameList[0]; }); return s; }
and the data sets are as follows:
data = [ ..., {x: xval, y: yval, nameList: myListOfNames}, ...]
where xval and yval are the x and y values โโof the data points, and myListOfNames is an array of strings.
source share