File Coverage

samples/sample41.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 1     1   1983 use GD::Graph::linespoints;
  0            
  0            
2             require 'save.pl';
3              
4             print STDERR "Processing sample41\n";
5              
6             @data = (
7             ["1st","2nd","3rd","4th","5th","6th","7th", "8th", "9th"],
8             [undef, 52, 53, 54, 55, 56, undef, 58, 59],
9             [60, 61, 61, undef, 68, 66, 65, 61, undef],
10             [70, undef, 71, undef, 78, undef, 75, 71, undef],
11             );
12              
13             $my_graph = new GD::Graph::linespoints( );
14              
15             $my_graph->set(
16             x_label => 'X Label',
17             y_label => 'Y label',
18             title => 'A Lines and Points Graph',
19             y_max_value => 80,
20             y_tick_number => 6,
21             y_label_skip => 2,
22             y_long_ticks => 1,
23             x_tick_length => 2,
24             markers => [ 1, 5 ],
25              
26             skip_undef => 1,
27              
28             transparent => 0,
29              
30             ) or warn $my_graph->error;
31              
32             $my_graph->set_legend( 'data set 1', 'data set 2', 'data set 3' );
33             $my_graph->plot(\@data);
34             save_chart($my_graph, 'sample41');
35              
36              
37             1;