Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re: Problems with references using GD::Graph::Data

by buckaduck (Chaplain)
on Apr 01, 2002 at 18:56 UTC ( #155820=note: print w/replies, xml ) Need Help??

in reply to Problems with references using GD::Graph::Data

Presumably, $gd is undefined. I'm guessing that the GD::Graph::bars module is unhappy with the fact that you're trying to create a graph out of a one-dimensional set of data.

At least your data looks one-dimensional to me, based on the SQL query that you're using. You're adding a series of X values with no associated Y values. What sort of graph are you hoping to produce from this? Now if you included some Y values, maybe things would be different...


Replies are listed 'Best First'.
Re: Re: Problems with references using GD::Graph::Data
by gary kuipers (Beadle) on Apr 01, 2002 at 22:09 UTC
    You are right! When I use X and Y values ( by saying SELECT SysID, SysID FROM ..." the graph prints without problems. I made a bad assumption ... that the module would provide a sequential X value. Not so! Anyway, thanks!

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://155820]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (8)
As of 2022-12-09 23:27 GMT
Find Nodes?
    Voting Booth?

    No recent polls found