File Coverage

samples/sample13.pl
Criterion Covered Total %
statement 4 6 66.6
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 6 8 75.0


line stmt bran cond sub pod time code
1 1     1   1983 use strict;
  1         1  
  1         30  
2 1     1   32 use GD::Graph::bars;
  0            
  0            
3             use GD::Graph::hbars;
4             require 'save.pl';
5              
6             my @data = (
7             ["1st","2nd","3rd","4th","5th","6th","7th", "8th", "9th"],
8             [ 5, 12, 24, 33, 19, 8, 6, 15, 21],
9             [ 1, 2, 5, 6, 3, 1.5, 1, 3, 4]
10             );
11              
12             my @names = qw/sample13 sample13-h/;
13              
14             for my $my_graph (GD::Graph::bars->new, GD::Graph::hbars->new)
15             {
16             my $name = shift @names;
17             print STDERR "Processing $name\n";
18              
19             $my_graph->set(
20             x_label => 'X Label',
21             y_label => 'Y label',
22             title => 'Bars in front of each other',
23             #y_tick_number => 8,
24             #y_label_skip => 2,
25             overwrite => 1,
26             bar_spacing => 8,
27             shadow_depth => 4,
28              
29             transparent => 0,
30             );
31              
32             $my_graph->plot(\@data);
33             save_chart($my_graph, $name);
34             }
35              
36             1;