File: direction_1.t

package info (click to toggle)
libchart-perl 2.4.5-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 3,896 kB
  • sloc: perl: 11,587; makefile: 569
file content (30 lines) | stat: -rw-r--r-- 694 bytes parent folder | download | duplicates (4)
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
#!/usr/bin/perl -w

use Chart::Direction;

print "1..1\n";

$g = Chart::Direction->new( 500, 500 );
my @labels = ( 'eins', 'zwei', 'drei', );

$g->add_dataset( 0,  10, 30, 100, 110, 200, 250, 300, 350 );
$g->add_dataset( 10, 4,  11, 40,  20,  35,  5,   45,  20 );
$g->add_dataset( 29, 49, 20, 17,  30,  42,  45,  25,  30 );
$g->add_dataset( 40, 35, 25, 30,  42,  20,  32,  16,  5 );
$g->set(
    'title'           => 'Direction Demo',
    'grey_background' => 'false',
    'line'            => 'true',
    'precision'       => 0,
    'legend_labels'   => \@labels,
    'legend'          => 'bottom',

    # 'polar' => 'true',
);

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

print "ok 1\n";

exit(0);