Commits

Michel Sabchuk committed 54bc7e5

Denoted when series are disabled by appling line-through in his legend items.

Comments (0)

Files changed (2)

src/jquery.jqplot.css

 td.jqplot-seriesToggle:hover, td.jqplot-seriesToggle:active {
     cursor: pointer;
 }
+tr.jqplot-seriesToggle-hidden td {
+    text-decoration: line-through;
+}
 
 td.jqplot-table-legend > div {
     border: 1px solid #cccccc;

src/plugins/jqplot.enhancedLegendRenderer.js

                                 } 
                                 if (this.showSwatches) {
                                     td1.bind('click', {series:s, speed:speed}, s.toggleDisplay);
+                                    td1.bind('click', function() { $(this).parent().toggleClass('jqplot-seriesToggle-hidden'); });
                                     td1.addClass('jqplot-seriesToggle');
                                 }
                                 if (this.showLabels)  {
                                     td2.bind('click', {series:s, speed:speed}, s.toggleDisplay);
+                                    td2.bind('click', function() { $(this).parent().toggleClass('jqplot-seriesToggle-hidden'); });
                                     td2.addClass('jqplot-seriesToggle');
                                 }
                             }
             this.eventCanvas._elem.after(e);
         }
     };
-})(jQuery);
+})(jQuery);