File Coverage

samples/sample72.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   1327 use strict;
  1         2  
  1         24  
2 1     1   20 use GD::Graph::mixed;
  0            
  0            
3             require 'save.pl';
4              
5             print STDERR "Processing sample72\n";
6              
7             my @data = (
8             ["1st","2nd","3rd","4th","5th","6th","7th", "8th", "9th"],
9             [ 1, 2, 5, 6, 3, 1.5, -1, -3, -4],
10             );
11             my $my_graph = new GD::Graph::bars();
12              
13             $my_graph->set(
14              
15             title => 'This is a chart with ridicuklously long labels all ' .
16             'over the place, just to see what that does',
17             x_label => 'This is a very long X Label that should span '.
18             'across the whole axis and further',
19             y_label => 'This is a very long Y Label that should span '.
20             'across the whole axis and further',
21             transparent => 0,
22              
23             );
24              
25             $my_graph->set_title_font('../Dustismo_Sans.ttf', 18);
26             $my_graph->set_x_label_font('../Dustismo_Sans.ttf', 10);
27             $my_graph->set_y_label_font('../Dustismo_Sans.ttf', 10);
28             $my_graph->set_x_axis_font('../Dustismo_Sans.ttf', 8);
29             $my_graph->set_y_axis_font('../Dustismo_Sans.ttf', 8);
30             $my_graph->set_legend_font('../Dustismo_Sans.ttf', 9);
31              
32             $my_graph->plot(\@data);
33              
34             save_chart($my_graph, 'sample72');
35              
36              
37             1;