cleonello  committed 974fe1d

Added legend option to show/hide swatches and/or labels separately. Needed if series elements (like on a block plot) don't all have the same color.

  • Participants
  • Parent commits cc3ff25

Comments (0)

Files changed (1)

File src/jqplot.core.js

         // Array of labels to use.  By default the renderer will look for labels on the series.
         // Labels specified in this array will override labels specified on the series.
         this.labels = [];
+        // prop: showLabels
+        // true to show the label text on the  legend.
+        this.showLabels = true;
+        // prop: showSwatch
+        // true to show the color swatches on the legend.
+        this.showSwatch = true;
         // prop: placement
         // "inside" places the legend inside of the grid, 
         // '"outside" places it ouside of the grid.