JohnB has asked for the wisdom of the Perl Monks concerning the following question:
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Problems With Chart Module
by Albannach (Monsignor) on Dec 08, 2000 at 02:58 UTC | |
|
(Ovid) Re: Problems With Chart Module
by Ovid (Cardinal) on Dec 08, 2000 at 03:09 UTC | |
by dws (Chancellor) on Dec 08, 2000 at 07:38 UTC | |
|
Re: Problems With Chart Module
by tune (Curate) on Dec 08, 2000 at 04:51 UTC | |
by JohnB (Scribe) on Dec 08, 2000 at 21:14 UTC |