in reply to GD::Graph Help

You need to call the plot method from the GD::Graph object.

Replace
my $gd = my $my_graph->plot(\@data);
with
my $gd = $graph->plot(\@data);

Replies are listed 'Best First'.
Re: Re: GD::Graph Help
by sunadmn (Curate) on Aug 29, 2003 at 15:36 UTC
    Great that did seem to work, well atleast I am not getting errors now, but I am alos not seeing the graph on the html page or am I seeing the file graph.png in the ../htdocs dir. Any idea of what else I am missing?? -Thanks
      Try checking to see if the GD::Image object was created.
      my $gd = $graph->plot(\@data) or die $graph->error;