Is this possible?
Im looking at something along the following lines
Code: Select all
$('#legendWrap ul li').live('mouseover mouseout', function (event) {
if (event.type == 'mouseover') {
var index = $(this).attr('data-index') + 1;
leftChart.tooltip.refresh(leftChart.series[0].data[index]);
rightChart.tooltip.refresh(rightChart.series[0].data[index]);
} else {
leftChart.tooltip.hide();
rightChart.tooltip.hide();
}
});
Uncaught TypeError: Cannot read property 'tooltipPos' of undefined
EDIT...
code was working fine... my index was screwed