File: pareto_1.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 (38 lines) | stat: -rw-r--r-- 912 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
31
32
33
34
35
36
37
38
#!/usr/bin/perl -w

use Chart::Pareto;

print "1..1\n";

$g = Chart::Pareto->new( 450, 400 );
$g->add_dataset( 'Mo', 'Tue', 'We', 'Th', 'Fr', 'Sa', 'Su' );
$g->add_dataset( 2500, 1000,  250,  700,  100,  610,  20 );

%hash = (
    'colors' => {
        'dataset0'     => 'green',
        'dataset1'     => 'red',
        'x_label'      => 'red',
        'y_grid_lines' => 'white',
        'title'        => 'blue',
    },
    'title'              => 'Sold Tickets for Beethovens 9th\n ',
    'integer_ticks_only' => 'true',
    'skip_int_ticks'     => 250,
    'sort'               => 'true',
    'max_val'            => 5500,
    'y_grid_lines'       => 'true',
    'y_label'            => 'Sold Tickets',
    'x_label'            => '! sold out in the first week !',
    'spaced_bars'        => 'false',

    'legend' => 'none',
);

$g->set(%hash);
$g->png("samples/pareto_1.png");

print "ok 1\n";

exit(0);