From 944292a74b5bc00912f4eed71cd6c10ac3484673 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Thu, 16 Jul 2009 09:11:32 +0000 Subject: [PATCH] update apache section in INSTALL file and try to choose better color for graphs. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@9017 91ce42f0-d328-0410-95d8-f526ca767f89 --- gui/bweb/cgi/bgraph.pl | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gui/bweb/cgi/bgraph.pl b/gui/bweb/cgi/bgraph.pl index c43cee86ae..760e670a04 100755 --- a/gui/bweb/cgi/bgraph.pl +++ b/gui/bweb/cgi/bgraph.pl @@ -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, ); -- 2.39.5