GD graph, Several Colors per Bar?

GD graph, Several Colors per Bar?

am 30.05.2005 19:52:04 von cabbe

Hi.
I'm struggling with a GD::Graph -problem.
I want to create a graph with bars by
adding(+) the execution time from each little job within my nightbatch.

lets say my nightbatch took 20 minutes.
on day1
job1 took 2 min
job2 took 10 min
job3 took 8 min

and on day2
job1 took 10 min
job2 took 10 min
job3 took 5 min


If i create the graph by using the 20 or 25-minutes -value on Y-axis. Ill
never get the trends for my smaller jobs in a good way.


Y-axis (minutes)
25 |job3| <-red
20 |job2| <-blue
15 |job2| <-blue
10 |job1| <-green
5 |job1| <-green
----day2--------- X axis date


I'm pretty lousy at explaining things, but perhaps there's someone out
there that understands and has got a suggestion on how to solve this?

Regards!

Re: GD graph, Several Colors per Bar?

am 30.05.2005 21:49:03 von cabbe

On Mon, 30 May 2005 17:52:04 +0000, cabbe wrote:

> Hi.
> I'm struggling with a GD::Graph -problem.
> I want to create a graph with bars by
> adding(+) the execution time from each little job within my nightbatch.
...
> If i create the graph by using the 20 or 25-minutes -value on Y-axis. Ill
> never get the trends for my smaller jobs in a good way.
>
> Y-axis (minutes)
> 25 |job3| <-red
> 20 |job2| <-blue
> 15 |job2| <-blue
> 10 |job1| <-green
> 5 |job1| <-green
> ----day2--------- X axis date
>
>
> I'm pretty lousy at explaining things, but perhaps there's someone out
> there that understands and has got a suggestion on how to solve this?
>
> Regards!

I believe i found it myself,
$data->cumulate()