Hi,

i want to ouput a graph image that i generated to a file but not quite sure how to do 
it, below is what i have done.pls advise

Conan

.....
.....
.....
use GD::Graph::bars;
my $graph = new GD::Graph::bars(800, 600);

my $gd_image = $graph->plot( \@data ); # @data contains x & y values for the bar graph
binmode FH;

open (FH, "> /www/html/images/graph.png");
print(FH "$gd_image->png");
close(FH);
.....
.....
......

Reply via email to