]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 232055 - add more colours to line graphs (default is 7; we now have 16.) Patch...
authorgerv%gerv.net <>
Sun, 25 Jan 2004 05:40:31 +0000 (05:40 +0000)
committergerv%gerv.net <>
Sun, 25 Jan 2004 05:40:31 +0000 (05:40 +0000)
template/en/default/reports/chart.png.tmpl
template/en/default/reports/report-line.png.tmpl

index 18452175cb830b306104ac5011843c7449a6f740..e8e9116298344513f74b302644ec1779ec020988 100644 (file)
             x_labels_vertical => 1,
             x_label_skip      => x_label_skip,
             legend_placement  => "RT",
-            line_width        => 2);
-  
+            line_width        => 2,
+            dclrs             => ["lred", "lgreen", "lblue", "lyellow",
+                                  "lpurple", "lorange", "black", "green",
+                                  "blue", "dpink", "lbrown", "gray", 
+                                  "red", "dpurple", "gold", "marine"]);
+   
   # Workaround for the fact that set_legend won't take chart.labels directly, 
   # because chart.labels is an array reference rather than an array.
   graph.set_legend(chart.labels.0, chart.labels.1, chart.labels.2,
index 780ec37e3ea0d7d3e2f53f20e38e505edcb1c99a..be29a71e31533e9b4bb79da8bd91a7a35b492a01 100644 (file)
             x_label_position  => 0.5,
             x_labels_vertical => x_labels_vertical,
             legend_placement  => "RT",
-            line_width        => 2);
+            line_width        => 2,
+            dclrs             => ["lred", "lgreen", "lblue", "lyellow",
+                                  "lpurple", "lorange", "black", "green",
+                                  "blue", "dpink", "lbrown", "gray", 
+                                  "red", "dpurple", "gold", "marine"]);
 
   # Workaround for the fact that set_legend won't take row_names directly,
   # because row_names is an array reference rather than an array.