GertMT has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl -w use strict; use diagnostics; use Data::Table; use GD::Graph::bars; my $table = new Data::Table( [ [ 20070410, 20070415, 20070417 ], [ 10, 20, 15 ] +], [ 'A', '+B' ], 1 ); print $table->html; for my $graph ( GD::Graph::bars->new( 700, 150 ) ) { $graph->set( 'y_number_format' => '%d', transparent => 0, values_vertical => 1, show_values => 1, ); $graph->set( 'x_labels_vertical' => 1 ); my $gd = $graph->plot( $table->colRefs( [ 0, 1 ] ) ); open( IMG, ">voorraad.png" ) or die $!; binmode IMG; print IMG $gd->png; close IMG; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: GD::graph time-scale option?
by jettero (Monsignor) on May 09, 2007 at 11:16 UTC | |
by GertMT (Hermit) on May 09, 2007 at 11:57 UTC | |
by GertMT (Hermit) on May 10, 2007 at 08:32 UTC | |
by Krambambuli (Curate) on May 10, 2007 at 09:11 UTC | |
by GertMT (Hermit) on May 10, 2007 at 09:30 UTC | |
by Krambambuli (Curate) on May 10, 2007 at 09:38 UTC |