CGI-Application-Plugin-DBIProfile
view release on metacpan or search on metacpan
lib/CGI/Application/Plugin/DBIProfile/Graph/GDGraphInline.pm view on Meta::CPAN
# merge options with defaults.
%opts = (%defs, map { $_ => $opts{$_} }
grep { defined $opts{$_} }
keys %opts );
# build the graph image
my $graph_data;
{
our @BARS;
my $graph = GD::Graph::bars->new($WIDTH, $HEIGHT);
$graph->set(transparent => 0,
bgclr => '#FFFFFF',
legend_placement => 'BC',
x_ticks => 0,
cycle_clrs => 1,
bar_spacing => 5,
shadow_depth => 2,
dclrs => [ map { "#$_" } @BARS ],
);
$graph->set(title => $opts{title});
$graph->set(y_label => $opts{ylabel});
( run in 0.588 second using v1.01-cache-2.11-cpan-a1d94b6210f )