File: bars.t

package info (click to toggle)
libchart-perl 1.0.1-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 320 kB
  • ctags: 86
  • sloc: perl: 2,796; makefile: 33
file content (18 lines) | stat: -rw-r--r-- 387 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use Chart::Bars;

print "1..1\n";

$g = Chart::Bars->new;
$g->add_dataset ('foo', 'bar', 'junk', 'ding', 'bat');
$g->add_dataset (3000, 4000, 8000, 5000, 9000);
$g->add_dataset (8000, 6000, 3000, 3000, 4000);
$g->add_dataset (5000, 7000, 2020, 8000, 9000);

$g->set ('y_grid_lines' => 'true');
$g->set ('title' => 'Bar Chart');

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

print "ok 1\n";

exit (0);