]> granicus.if.org Git - pgbadger/commitdiff
Fix legend opacity on graphics
authorDarold Gilles <gilles@darold.net>
Thu, 3 May 2012 19:43:42 +0000 (21:43 +0200)
committerDarold Gilles <gilles@darold.net>
Thu, 3 May 2012 19:43:42 +0000 (21:43 +0200)
pgbadger

index 94bf13a862fba8494620c91a94bd83e0dcca67cd..b4c6bd2f23b98e1bf5a0e0a97cf4adb0b7e23bd4 100755 (executable)
--- a/pgbadger
+++ b/pgbadger
@@ -2179,11 +2179,16 @@ sub flotr2_graph
             mode: "x",
             fps: 30
         },
-        title: "$title"
+        title: "$title",
+        legend: {
+            position: "nw",
+            backgroundColor: "#D2E8FF"
+        },
+        HtmlText: false,
     };
 
     function drawGraph(opts) {
-        var o = Flotr._.extend(Flotr._.clone(options), opts || { legend: { position: "nw", color: "#000000", backgroundColor: "#D2E8FF" } } );
+        var o = Flotr._.extend(Flotr._.clone(options), opts );
         return Flotr.draw(
                container,
                [