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; I once made a little perl script for that. @color = ('00FF00','11FF00','22FF00','33FF00','44FF00','55F F00','66FF00','77FF00','88FF00','...


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
Erik de Mare
 
Posts: n/a
Default Re: [rrd-users] Area in different colors

I once made a little perl script for that.

@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++){
print "STACK:$letter#$color[$i]\n";
push(@data,"STACK:$letter#$color[$i]");
$letter++;
}

makes something like this:
http://haas.oezie.org/rrd/haas-day-proces.png

Mvg,
Erik

Simone Felici schreef:
> Alex van den Bogaerdt ha scritto:
>> On Tue, Dec 04, 2007 at 04:18:23PM +0100, Simone Felici wrote:
>>
>>> Hi Alex!
>>>
>>> It's not exactly what I would create.
>>> This creates a graph with different colors, but where the values goes over 60 (in example), it takes the same color from 0 to over 60 and not 4
>>> different colors.

>> This issue comes up every now and then. Several examples are shown
>> on the mailing list, please have a look in the archives.
>>
>> Also see the other response you just got.
>>

> Ok, thank's anyway...
> search form is not the best one, bwt
> thank's to all, I'll look forward myself.
> Bye, Simon
>


_______________________________________________
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 01:01 PM.


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