Commit 2c57d535 authored by olau@iola.dk's avatar olau@iola.dk

Fixed issue with background colors not printing in legend

git-svn-id: https://flot.googlecode.com/svn/trunk@104 1e0a6537-2640-0410-bfb7-f154510ff394
parent 23f73b5b
Flot 0.x Flot 0.x
-------- --------
Bug fixes:
Fixed two corner-case bugs when drawing filled curves (report and Fixed two corner-case bugs when drawing filled curves (report and
analysis by Joshua Varner). Fix auto-adjustment code when setting min analysis by Joshua Varner). Fix auto-adjustment code when setting min
to 0 for an axis where the dataset is completely flat on that axis to 0 for an axis where the dataset is completely flat on that axis
...@@ -11,7 +13,8 @@ other chart type is shown (based on problem reported by Glenn ...@@ -11,7 +13,8 @@ other chart type is shown (based on problem reported by Glenn
Vanderburg), and fixed so that setting lineWidth to 0 also hides the Vanderburg), and fixed so that setting lineWidth to 0 also hides the
shadow (based on problem reported by Sergio Nunes). Updated mousemove shadow (based on problem reported by Sergio Nunes). Updated mousemove
position expression to the latest from jQuery (bug reported by position expression to the latest from jQuery (bug reported by
meyuchas). meyuchas). Use borders instead of background in legend (fix printing
issue 25 and 45).
Flot 0.5 Flot 0.5
......
...@@ -1507,7 +1507,7 @@ ...@@ -1507,7 +1507,7 @@
label = options.legend.labelFormatter(label); label = options.legend.labelFormatter(label);
fragments.push( fragments.push(
'<td class="legendColorBox"><div style="border:1px solid ' + options.legend.labelBoxBorderColor + ';padding:1px"><div style="width:14px;height:10px;background-color:' + series[i].color + ';overflow:hidden"></div></div></td>' + '<td class="legendColorBox"><div style="border:1px solid ' + options.legend.labelBoxBorderColor + ';padding:1px"><div style="width:4px;height:0;border:5px solid ' + series[i].color + ';overflow:hidden"></div></div></td>' +
'<td class="legendLabel">' + label + '</td>'); '<td class="legendLabel">' + label + '</td>');
} }
if (rowStarted) if (rowStarted)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment