Commits

Audrius Kažukauskas  committed 8acd828

Don't highlight hidden bars on mouseover.

  • Participants
  • Parent commits 538695e

Comments (0)

Files changed (1)

File src/plugins/jqplot.barRenderer.js

             evt1.pageX = ev.pageX;
             evt1.pageY = ev.pageY;
             plot.target.trigger(evt1, ins);
-            if (plot.series[ins[0]].highlightMouseOver && !(ins[0] == plot.plugins.barRenderer.highlightedSeriesIndex && ins[1] == plot.series[ins[0]]._highlightedPoint)) {
+            if (plot.series[ins[0]].show && plot.series[ins[0]].highlightMouseOver &&
+                !(ins[0] == plot.plugins.barRenderer.highlightedSeriesIndex && ins[1] == plot.series[ins[0]]._highlightedPoint)) {
                 var evt = jQuery.Event('jqplotDataHighlight');
 		evt.which = ev.which;
                 evt.pageX = ev.pageX;