#!/usr/bin/perl -w BEGIN { unshift @INC, 'lib', '../lib'} use Chart::Bars; use File::Temp 0.19; my $samples = File::Temp->newdir(); print "1..1\n"; $g = Chart::Bars->new( 600, 600 ); $g->add_dataset( 'foo', 'bar', 'junk', 'ding', 'bat' ); $g->add_dataset( 30000, 40000, 80000, 50000, 90000 ); $g->add_dataset( 80000, 60000, 30000, 30000, 40000 ); $g->add_dataset( 50000, 70000, 20200, 80000.8, 40000 ); %hash = ( 'transparent' => 'true', 'precision' => 1, 'title' => 'Bars\nChartmodul', 'y_grid_lines' => 'true', 'graph_border' => '4', 'min_val' => '0', 'text_space' => '2', 'sub_title' => 'Untertitel', 'x_label' => 'X-Achse', 'y_label' => 'Y-Achse', 'y_label2' => 'Y-Achse2', 'legend' => 'none', 'tick_len' => '3', 'x_ticks' => 'vertical', 'include_zero' => 'true', 'skip_x_ticks' => '1', 'grid_lines' => 'true', 'colors' => { 'text' => [ 100, 0, 200 ], 'y_label' => [ 2, 255, 2 ], 'y_label2' => [ 2, 255, 2 ], 'y_grid_lines' => 'black', 'x_grid_lines' => 'black', 'dataset0' => [ 255, 20, 147 ], }, 'y_ticks' => '20', ); $g->set(%hash); $g->png("$samples/bars.png"); print "ok 1\n"; exit(0);