GIFgraph

 view release on metacpan or  search on metacpan

samples/sample21.pl  view on Meta::CPAN

use GIFgraph::area;
use strict;

print STDERR "Processing sample 2-1\n";

my @data = ( 
    ["1st","2nd","3rd","4th","5th","6th","7th", "8th", "9th"],
    [    5,   12,   24,   33,   19,    8,    6,    15,    21],
    [    1,    2,    5,    6,    3,  1.5,    1,     3,     4]
);

my $my_graph = new GIFgraph::area();

$my_graph->set( 
	x_label => 'X Label',
	y_label => 'Y label',
	title => 'An Area Graph',
	y_max_value => 40,
	y_tick_number => 8,
	y_label_skip => 2,
);

$my_graph->set_legend( 'one', 'two' );

$my_graph->plot_to_gif( "sample21.gif", \@data );

exit;



( run in 1.802 second using v1.01-cache-2.11-cpan-39bf76dae61 )