[rrd-users] Re: Changing line color
Alex van den Bogaerdt
alex at ergens.op.het.net
Thu Jan 23 23:09:39 MET 2003
On Thu, Jan 23, 2003 at 03:29:22PM -0500, Vargas, Miguel wrote:
> Is it possible to do changing colors on LINE? graphs? The AREA trick
> doesn't work on line graphs because the lines aren't connected, this is
> especially noticeable on low resolution graphs. For example I tried this
>
> DEF:in=my.rrd:In:AVERAGE
> CDEF:under=in,34000,LT,in,UNKN,IF
> CDEF:over=in,34000,GT,in,34000,-,UNKN,IF
> LINE2:under#00ff00
> STACK:over#ff0000
>
> And here is what it looks like: http://miguel.vargas.com/test.png.
?
This picture seems to show two normal lines, not one stacked on top
of the other.
I do see the gaps. From what I see on the graph, you are displaying
the red line between 09:15 (or so) and 18:15 (or so).
If you do indeed use LTIME, make the two lines overlap.
pseudo code:
change
if (time >= 09:15) and (time <= 18:15) then display in red
else display in green
into
if (time >= 09:15) and (time <= 18:15) then display in red
if (time <= 09:15) or (time >= 18:15) then display in green
Never tried this, but should work in theory.
HTH
Alex
--
Much of what looks like rudeness in hacker circles is not intended to give
offence. Rather, it's the product of the direct, cut-through-the-bullshit
communications style that is natural to people who are more concerned about
solving problems than making others feel warm and fuzzy.
http://www.tuxedo.org/~esr/faqs/smart-questions.html
--
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