Looking at the api for the jqplot.highlighter.js
plugin, it doesn't appear to give you that level of control (it would be nice if it had a formatter callback). So, I'd just drop the plugin all together and code it yourself using the jqplotDataHighlight
and jqplotDataUnhighlight
events:
$('#chart2').bind('jqplotDataHighlight',
function (ev, seriesIndex, pointIndex, data) {
var aList = myData[pointIndex][2];
$('#tooltip').html(aList.join('<br/>'));
$('#tooltip').css('display','block');
}
);
$('#chart2').bind('jqplotDataUnhighlight',
function (ev) {
$('#tooltip').css('display','none');
}
);
Here's a working example.