develooper Front page | perl.beginners | Postings from March 2002

Re: GD::Graph

Thread Previous
From:
drieux
Date:
March 31, 2002 10:59
Subject:
Re: GD::Graph
Message ID:
693A8B66-44D9-11D6-A9CB-0030654D3CAE@wetware.com

On Sunday, March 31, 2002, at 05:05 , Josue Garayua wrote:

> GD::Graph::chart

I assume that you were trying something on the form

	$graph = GD::Graph::chart->new(400, 300);

when it blew up???

OYE! I think I see the problem - the documentation shows
the above illustration but the wording asserted:

		"Create a new GD::Graph object by calling the new method on
        the graph type you want to create (chart is bars, lines,
        points, linespoints, mixed or pie)."

'chart' is one of  (bars, lines, points, linespoints, mixed or pie )

hence if you wanted to make a 'bar' chart you would use

	$graph = GD::Graph::bars->new(400, 300);

since there is No specific 'generic class' "chart"

another test would be something like

	use GD::Graph::chart ;

in a small script....

and it should blow up with not being able to find chart.pm.....

so you would have wanted to do say

	use GD::Graph::bars



ciao
drieux

---


Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About