[rrd-users] Re: Changing line color

Vargas, Miguel mvargas at tnsi.com
Fri Jan 24 01:17:39 MET 2003


> Try an overlay.  Just draw the green line straight from the DEF,
> then overlay the relevant portion with the red line.

Thanks to Alex I figured it out, http://miguel.vargas.com/test.png.

Created with
DEF:in="my.rrd":In:AVERAGE 
CDEF:under=in,34000,LT,in,UNKN,IF
HRULE:34000#0000ff 
LINE2:in#00ff00 
LINE2:over#ff0000

The second LINE2 statement goes on top of the first one and covers it up.
The reason the green line doesn't cut off exactly at 34k is because the red
line doesn't start until the first data point above 34k.  But this is close
enough to I wanted.

Thanks!

--
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