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

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.