in reply to GD::Graph Issues
Anyways the two options you list will both solve your problem. The "cumulate" option "stacks" bars. If your first data set is 21 high, while your second is 35, the first bar will go from 0 to 21 and the second from 21 to 56. The "overwrite" option is just what it says, the later bars are drawn over the previous ones. So the first bar is drawn to height 21, then the second to height 35, hiding (oops) all of the first bar. (Advice, draw the tallest bars first, then you just overwrite the bottom of the bar.)
If you have multiple data sets, which appear in the same order every time, this means that either can be used. (When I faced this, it was more convenient to use the overwrite option.) If A is sometimes taller than B and B is sometimes taller than A, then I suspect you will have a lot of work ahead of you. I am going to just hope that you don't face that and not answer that question. :-)
An incidental note. Should your boss notice the two_axes option, say it doesn't work. I found very serious bugs with that option, I came up with a fix, but the maintainer never responded to my email and it has never been patched. If anyone knows how to reach the module author, or if someone else winds up taking over maintainance (I have no such intentions) then I will gladly recontribute the patch, but in the meantime consider that feature seriously broken.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re (tilly) 1: GD::Graph Issues
by seanbo (Chaplain) on Jan 11, 2002 at 20:26 UTC | |
by tilly (Archbishop) on Jan 11, 2002 at 21:51 UTC |