Commits

Anonymous committed da842c5

Added background color as well as border color to swatches on legend.

Comments (0)

Files changed (2)

src/jqplot.tableLegendRenderer.js

         }
         if (this.showSwatches) {
             $('<td class="jqplot-table-legend" style="text-align:center;padding-top:'+rs+';">'+
-            '<div><div class="jqplot-table-legend-swatch" style="border-color:'+color+';"></div>'+
+            '<div><div class="jqplot-table-legend-swatch" style="background-color:'+color+';border-color:'+color+';"></div>'+
             '</div></td>').appendTo(tr);
         }
         if (this.showLabels) {

src/plugins/jqplot.enhancedLegendRenderer.js

                             rs = (pad) ? this.rowSpacing : '0';
                     
                             td1 = $('<td class="jqplot-table-legend" style="text-align:center;padding-top:'+rs+';">'+
-                                '<div><div class="jqplot-table-legend-swatch" style="border-color:'+color+';"></div>'+
+                                '<div><div class="jqplot-table-legend-swatch" style="background-color:'+color+';border-color:'+color+';"></div>'+
                                 '</div></td>');
                             td2 = $('<td class="jqplot-table-legend" style="padding-top:'+rs+';"></td>');
                             if (this.escapeHtml){