On Sunday 24 June 2001 11:28 am, [EMAIL PROTECTED] wrote:
> I tried your code below but had problems:
> First, apache didn't like creating the image in the cgi-bin dir, so I
> changed the reference to apache/icons instead of current directory. Perhaps
> this is unimportant for your setup.
I haven't tried running it as a cgi script yet, but no you generally can't
write to the cgi-bin directory from a browser for security purposes :-)
> Second - where is @data defined and populated? I assume your code snippet
> just doesn't show it (if you don't have it defined, then you would not get
> red OR green bars, much less both!). If you used the example in the docs
> (my assumption), perhaps you did something like this:
I did use the example in the docs and @data is indeed populated elsewhere,
its actually the results from a database query,
And removing the sort fixed the problem, I just wish that the author of this
module had been a little clearer on that point., but I can't complain too
much its a great module.
--SNIP--
> (Of course, these datapoints are too small for the scale of your graph, so
> adjust accordingly).
The scale will actually be much larger than it currently is as I'm using it
to track the performance of my 401K, which leads me to ask:
If any one else might like to use this script, feel free to email me and I'll
send you a copy since everything I write away from work is GPLed :-)
Another question, would anyone be interested in helping me create a
script/snippet archive geared towards newbies?
--SNIP--