Issue #633 new

jqplotDataHighlight does not work for line charts

Justin Khoo
created an issue

Nothing happens when binding the jqplotDataHighlight event when a line chart is used.

It looks like highlightMouseOver is always false in line 5986 of the handleMove() method in jquery.jqplot.js... {{{

!javascript

if (plot.series[ins[0]].highlightMouseOver && !(ins[0] == plot.plugins.lineRenderer.highlightedSeriesIndex)) {

}}}

Apparently the quick and dirty way to force jqplotDataHighlight to work is to set highlightMouseOver after the plot variable has been created.

{{{

!javascript

var myplot = $.jqplot( '#...., var seriesIndex = 0; //Or whatever "series" the line chart happen to be myplot.series[seriesIndex].highlightMouseOver = true;

}}}

Comments (1)

  1. Log in to comment