File: pie_6.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 (27 lines) | stat: -rw-r--r-- 571 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
#!/usr/bin/perl -w
use Chart::Pie;

print "1..1\n";

$g = Chart::Pie->new(500,400);
#$g = Chart::Pie->new;

$g->add_dataset ('Free', 'Reserved', 'Deactivated', 'Leased', 'Unavailable');
$g->add_dataset (36, 0 , 1, 216, 0);

%opt = ( 'label_values' => 'none',
	 'legend_label_values' => 'both',
         'legend' => 'right',
         'text_space' => 10,
         'png_border' => 1,
         'graph_border' => 0,
	 'grey_background' => 'false',
	 'x_label' => 'Total IPs In Scope 253',
        );

$g->set (%opt);

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

print "ok 1\n";
exit (0);