File Coverage

samples/sample29.pl
Criterion Covered Total %
statement 1 3 33.3
branch n/a
condition n/a
subroutine 1 1 100.0
pod n/a
total 2 4 50.0


line stmt bran cond sub pod time code
1             # NOT ACTIVE IN DISTRIBUTION, REQUIRES OVERWRITE = 2 TO WORK
2 1     1   2250 use GD::Graph::area;
  0            
  0            
3             require 'save.pl';
4              
5             print STDERR "Processing sample29\n";
6              
7             @data = (
8             ["1st","2nd","3rd","4th","5th","6th","7th", "8th", "9th"],
9             [ 5, 12, 24, 33, 19, 8, 6, 15, 21],
10             [ 1, 2, 5, 6, 3, 1.5, 1, 3, 4]
11             );
12              
13             $my_graph = new GD::Graph::area();
14              
15             $my_graph->set(
16             x_label => 'X Label',
17             y_label => 'Y label',
18             title => 'An Weird Area Graph',
19             y_max_value => 40,
20             y_tick_number => 8,
21             y_label_skip => 2,
22             dclrs => ['white', 'blue'],
23             borderclrs => ['white', 'black'],
24              
25             transparent => 0,
26             );
27              
28             $my_graph->set_legend( 'empty', 'data' );
29             $my_graph->plot(\@data);
30             save_chart($my_graph, 'sample23');
31              
32              
33             1;