File: lines_7.t

package info (click to toggle)
libchart-perl 2.4.10ds1-2
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 1,900 kB
  • ctags: 245
  • sloc: perl: 11,697; makefile: 6
file content (29 lines) | stat: -rw-r--r-- 766 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
#!/usr/bin/perl -w

use Chart::Lines;
use strict;
my $g;

print "1..1\n";

$g = Chart::Lines->new;
$g->add_dataset( 'one', 'two', 'three', 'four', 'five', 'six' );
$g->add_dataset( 3,     11,    5,       10,     12,     4 );
$g->add_dataset( -1,    3,     6,       -2,     -8,     0 );
$g->add_dataset( 5,     5,     6,       2,      12,     9 );
$g->add_dataset( 0,     0,     0,       0,      0,      0 );
$g->add_dataset( -12,   -18,   0,       0,      0,      1 );

$g->set( 'title'        => "Lines Chart" );
$g->set( 'sub_title'    => 'Lines Chart' );
$g->set( 'y_grid_lines' => 'true' );
$g->set( 'legend'       => 'bottom' );
$g->set( 'precision'    => '0' );
$g->set( 'include_zero' => 'true' );

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

print "ok 1\n";

exit(0);