I am using the module CHART.PPM with ActivePerl 5.6 (Build 6.20) with Microsoft Windoze ME and can't get it to work. Am I missing some other modules or is it a dumb typing mistake.
use Chart::Lines; $obj = Chart::Lines->new or "Chart does not work\n"; $obj->set ('title' => 'Graph Test'); @data = ( [ 'foo', 'bar', 'junk' ], [ 30.2, 23.5, 92.1 ] ); # Should create a gif file with graph $obj->gif ("test.gif", \@data);
The last line should create a gif file of the graph but I get this message: Can't locate object method "gif" via package "Chart::Lines" at graph.pl
From what I read in the chart module instructions the next line should create a graph on a web page at the HTML tag IMG SRC="graph_program.pl"</CODE> $obj->cgi_gif ( \@data ); I get the error message: Can't locate object method "cgi_gif" via package "Chart::Lines" at graph.pl line
In reply to Problems With Chart Module by JohnB
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |