]> git.sur5r.net Git - bacula/bacula/commitdiff
update apache section in INSTALL file and try to choose better color for
authorEric Bollengier <eric@eb.homelinux.org>
Thu, 16 Jul 2009 09:11:32 +0000 (09:11 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Thu, 16 Jul 2009 09:11:32 +0000 (09:11 +0000)
graphs.

git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@9017 91ce42f0-d328-0410-95d8-f526ca767f89

gui/bweb/cgi/bgraph.pl

index c43cee86aee1dcc3083be42950730942b122316a..760e670a04d77fef6029871caec46b5f66d1b2b1 100755 (executable)
@@ -191,6 +191,8 @@ sub get_graph
 {
     my (@options) = @_;
     my $graph;
+    use GD::Graph::colour qw(:colours);
+
     if ($gtype eq 'lines') {
        use GD::Graph::lines;
        $graph = GD::Graph::lines->new ( $arg->{width}, $arg->{height} );
@@ -216,6 +218,13 @@ sub get_graph
                'x_number_format' => sub { strftime('%D', localtime($_[0])) },
                'x_tick_number' => 5*$arg->{width}/800,
                 'overwrite' => 1,
+                dclrs => [ add_colour("#afd8f8"), add_colour("#f6bd0f"),
+                           add_colour("#8bba00"), add_colour("#ff8e46"),
+                           add_colour("#008e8e"), add_colour("#d64646"),
+                           add_colour("#8e468e"), add_colour("#588526"),
+                           add_colour("#b3aa00"), add_colour("#008ed6"),
+                           add_colour("#9d080d"), add_colour("#a186be"),
+                ],
                @options,
                );