This is a discussion on [rrd-users] Re: color tones within the RRD Users forums, part of the Networking and Network Related category; I tried to make that also, what I got was this http://haas.oezie.org/rrd/haas-day-proces.png, ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
I tried to make that also, what I got was this
http://haas.oezie.org/rrd/haas-day-proces.png, from green to red. the problem now is that I can't graph negative numbers. her is a piece of perl code I made: @color = ('00FF00','11FF00','22FF00','33FF00','44FF00','55F F00','66FF00','77FF00','88FF00','99FF00','AAFF00', 'BBFF00', 'CCFF00','DDFF00','EEFF00','FFFF00','FFEE00','FFDD 00','FFCC00','FFBB00','FFAA00','FF9900','FF8800', 'FF7700','FF6600','FF5500','FF4400','FF3300','FF22 00','FF1100','FF0000'); $letter = 'a'; for($i=0;$i<@color;$i++){ $control = ($i+1)*($Size/@color); $fac = $Size/@color; $value = $i*($Size/@color); # print "CDEF:$letter=totaal,$control,GE,$fac,totaal,$valu e,-,0,LE,UNKN,totaal,$value,-,IF,IF\n"; push(@data,"CDEF:$letter=totaal,$control,GE,$fac,t otaal,$value,-,0,LE,UNKN,totaal,$value,-,IF,IF"); $letter++; } $letter = 'a'; push(@data,"AREA:$letter#$color[0]"); $letter++; for($i=1;$i<@color;$i++){ push(@data,"STACK:$letter#$color[$i]"); $letter++; } where total is the DEF that you are graphing. push(@data,"DEF:totaal=$file:hrStorageUsed:AVERAGE "); maybe this will help you as a start. mvg Erik de Mare Alexander Krogloth wrote: >hello, > >i want to know how to make rrdgraphs with these good-looking color tones >--> http://people.ee.ethz.ch/~oetiker/we...aumont-01.html > >i don't know how to set up the graph that there isn't a line where the >color changes from red to yellow but the change the color slowly .... > >thx for help > > >--alex > > > -- Unsubscribe mailto:rrd-users-request@list.ee.ethz.ch?subject=unsubscribe Help mailto:rrd-users-request@list.ee.ethz.ch?subject=help Archive http://lists.ee.ethz.ch/rrd-users WebAdmin http://lists.ee.ethz.ch/lsg2.cgi |