Re: [rrd-users] Area in different colors

This is a discussion on Re: [rrd-users] Area in different colors within the RRD Users forums, part of the Networking and Network Related category; At 14:48 +0100 4/12/07, Simone Felici wrote: >Hi to all! > >I know, this was ...


Go Back   Usenet Forums > Networking and Network Related > RRD Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-04-2007
Simon Hobson
 
Posts: n/a
Default Re: [rrd-users] Area in different colors

At 14:48 +0100 4/12/07, Simone Felici wrote:
>Hi to all!
>
>I know, this was often discussed, but I cannot find an example.
>I've a graph with one DS (area) and I need this single DS change
>color every 20 units if the DS goes over these values. The scale
>goes from 0 to 100
>(like a rainbow).



You mean something like :

ggg ggggg g
ooooooo oooooooo ooo
rrrrrrrrrrrrr rrrrrrrrrrrrrrrrrrrr

where r=red, o=orange, g=green

How about something like this :

if y>20 then a=20, else a=y
if y>40 then b1=40, else b1=y
....
if y>80 then d1=80, else d1=y
if y>80 then e=y-d1 else e=0
d=d1-c1
c=c1-b1
b=b1-a
area ... a ...
area ... b ... stacked
....
area ... e ... stacked


Thus area a is from zero to y or 20 (whichever is lower), b is from
the top of a to the lower of 40 or y, and so on.

_______________________________________________
rrd-users mailing list
rrd-users@lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 09:55 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0