File: bars_10.t

package info (click to toggle)
libchart-perl 2.4.1-4
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,804 kB
  • ctags: 370
  • sloc: perl: 9,120; makefile: 532
file content (48 lines) | stat: -rw-r--r-- 933 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/usr/bin/perl -w

use Chart::Bars;

print "1..1\n";

$g = Chart::Bars->new(600,500);

$g->add_dataset ('Berlin', 'Paris', 'Rome', 'London', 'Munich');

$g->add_dataset (0, 0, 0, 0, 0);
$g->add_dataset (0, 0, 0, 0, 0);
$g->add_dataset (0, 0, 0, 0, 0);
$g->add_dataset (0, 0, 0, 0, 0);
$g->add_dataset (0, 0, 0, 0, 0);
$g->add_dataset (0, 0, 0, 0, 0);
$g->add_dataset (0, 0, 0, 0, 0);




%hash = (
 	 'title' => 'Only a demo chart with zero data',
         'legend' => 'bottom',
         'grid_lines' =>'true',
      	  'include_zero' => 'true',
      	  'max_val' => '20',
          'min_val' => '-20',
	  'colors' => {'title' => 'red',
	 	      'x_label' => 'blue',
                      'y_label' => 'blue',
		      'background' => 'grey',
		      'text'    => 'blue',
	 	      },
          
	 );

$g->set (%hash);

$g->png ("samples/bars_10.png");

print "ok 1\n";

exit (0);