[rrd-users] Re: Making sure no area overwrites another

Alex van den Bogaerdt alex at slot.hollandcasino.nl
Thu Jan 3 00:04:04 MET 2002

Christohper Pope wrote:

> Is there an option for 'rrdtool graph' that ensures no set of data completely
> overlays another set of data on the same graph.  Example:


> Odds are someone looking at the graph would never see the Geo Metro because typically, 
> Farreris go faster than Geo Metros.  I can't just change the order that they are graphed in
> because one day that guy driving the Metro is going to put nitrous in it and beat the Farreri.
> So what i'm trying to ask is, "Is there any way to make rrdtool plot the variable with the largest range first,
> and the lowest range last?"  This would mean no matter how fast either is going, they would both show up on the graph.

This isn't going to work either because that Metro will win for the first
half of the graph, then the nitro's up and the Ferrari wins.  This results
in m overlaying f for the first half, then f overlaying m for the second half.

What you could check out is "STACK".

rrdtool graph --start speed_daily.png -84600 \
DEF:f=cars.rrd:ferrari:AVERAGE \
DEF:m=cars.rrd.:metro:AVERAGE \
AREA:#0000FF:"Geo Metro" \


The top of the two areas will be at the sum of f+m.  I can't know if
you find this useful so try it.

 / alex at slot.hollandcasino.nl                  alex at ergens.op.het.net \
| work                                                         private |
| My employer is capable of speaking therefore I speak only for myself |
| Technical questions sent directly to me will be nuked. Use the list. | 
| http://faq.mrtg.org/                                                 |
| http://rrdtool.eu.org  --> tutorial                                  |

Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi

More information about the rrd-users mailing list