Commits

Chris Leonello committed ea13743

Fixes for hiding without fading and replotting.

Comments (0)

Files changed (2)

src/jqplot.core.js

                 if (s.shadowCanvas._elem) {
                     s.shadowCanvas._elem.show();
                 }
-                s.canvas._elem.show(callback);
+                s.canvas._elem.show(0, callback);
                 s.canvas._elem.nextAll('.jqplot-point-label.jqplot-series-'+s.index).show();
             }
             else {
                 if (s.shadowCanvas._elem) {
                     s.shadowCanvas._elem.hide();
                 }
-                s.canvas._elem.hide(callback);
+                s.canvas._elem.hide(0, callback);
                 s.canvas._elem.nextAll('.jqplot-point-label.jqplot-series-'+s.index).hide();
             }
         }

src/plugins/jqplot.enhancedLegendRenderer.js

                                         speed = this.seriesToggle;
                                     }
                                 } 
-                                else if (this.seriesToggle === true) {
-                                    speed = 'normal';
-                                }
                                 if (this.showSwatches) {
                                     td1.bind('click', {series:s, speed:speed, plot: plot, replot:this.seriesToggleReplot}, handleToggle);
                                     td1.addClass('jqplot-seriesToggle');
             }
 
             else {
+                var s = plot.series[sidx];
 
                 if (s.canvas._elem.is(':hidden') || !s.show) {
                     plot.legend._elem.find('tr').eq(sidx).children().addClass('jqplot-series-hidden');