in reply to GDGraph charts

Apologies if this is an incredibly stupid comment, but my documentation suggests a slightly different approach:
my $image = $graph->plot(\@data); print $image->png;
(Code taken from the 2nd edition of Programming CGI with Perl.)