[rrd-users] Re: CDEFs and graduated colors

James Overbeck grendel at gmo.jp
Wed Apr 30 14:56:32 MEST 2003


Sounds like a lot of GT statements.

DEF:foo=$RRD:foo:AVERAGE
CDEF:0foo=foo,0,GT
CDEF:1foo=foo,1,GT
CDEF:2foo=foo,2,GT
CDEF:3foo=foo,3,GT
...
CDEF:255foo=foo,255,GT
AREA:0foo#0000FF
STACK:1foo#0100FE
STACK:2foo#0200FD
STACK:3foo#0300FC
...
STACK:255foo#FF0000

Hope that helps as a starter.

-james


Allan Houston wrote:
> Hi all,
> Been trying to get my head round a little problem with RRD. I've set it up
> to print some pretty flame graphs using CDEFs - basically by making 255
> CDEFs each 1/255th of the data value and stacking them up with a color which
> increments from blue to red.
> 
> What I was looking to do was come up with a way to have the color get redder
> ( i.e. hotter ) as the actual value increases. So for example a graph
> showing data ranging from 0 - 25% would be a comforting blueish-purple ,
> while one getting to 70 odd percent would have a blue base with a "flame"
> that gets pretty red at the top of the graph.
> 
> The way I see it is that I'm not using the value of the CDEF to properly
> reflect to data - I'm simply breaking it up into even parcels and making
> them look pretty..
> 
> I'd _really_ appreciate a nudge in the right direction :)
> 
> 
> --
> Cheers,
> Allan Houston
> --
> 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


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