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

Re: GD::Graph

Thread Previous
March 31, 2002 10:59
Re: GD::Graph
Message ID:

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

so you would have wanted to do say

	use GD::Graph::bars



Thread Previous Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About