File: points_2.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 (34 lines) | stat: -rw-r--r-- 630 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
#!/usr/bin/perl -w


use Chart::Points;

print "1..1\n";

$g = Chart::Points->new;
$g->add_dataset ('Mo', 'Di', 'Mi', 'Do', 'Fr', 'Sa', 'So');
$g->add_dataset (-3,    0,    8,     4,    2,     1,   0 );
$g->add_dataset ( 8,    0.12,   9,     2,    4,    -1,   3);
$g->add_dataset ( 5,     -7,   12,    5,    7,     5,    8);
$g->add_dataset (0, 0, 0, 0, 0, 0, 0);


@hash = ('title' => 'Points Chart',
	# 'type_style' => 'donut',
	 'png_border' =>10,
	 'precision' => 0,
	 'min_val' => 0, 
	 #'max_val' => 0,
	 'include_zero' => 'true',
	 
	 
	 );

$g->set (@hash);

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

print "ok 1\n";

exit (0);