[rrd-users] graduated colour graphs

Darryl Lewis Lewis.Darryl at abc.net.au
Wed Aug 22 02:58:36 CEST 2007

Hi all,
I'm using the following code to make shaded graphs:

"CDEF:shading2=myusers,0.98,*" "AREA:shading2#FF0000" \
"CDEF:shading10=myusers,0.90,*" "AREA:shading10#FF0F00" \
"CDEF:shading15=myusers,0.85,*" "AREA:shading15#FF1800" \
"CDEF:shading20=myusers,0.80,*" "AREA:shading20#FF2D00" \
"CDEF:shading25=myusers,0.75,*" "AREA:shading25#FF3C00" \
"CDEF:shading30=myusers,0.70,*" "AREA:shading30#FF4B00" \
"CDEF:shading35=myusers,0.65,*" "AREA:shading35#FF5A00" \
"CDEF:shading40=myusers,0.60,*" "AREA:shading40#FF6900" \
"CDEF:shading45=myusers,0.55,*" "AREA:shading45#FF7800" \
"CDEF:shading50=myusers,0.50,*" "AREA:shading50#FF8700" \
"CDEF:shading55=myusers,0.45,*" "AREA:shading55#FF9600" \
"CDEF:shading60=myusers,0.40,*" "AREA:shading60#FFA500" \
"CDEF:shading65=myusers,0.35,*" "AREA:shading65#FFB400" \
"CDEF:shading70=myusers,0.30,*" "AREA:shading70#FFC300" \
"CDEF:shading75=myusers,0.25,*" "AREA:shading75#FFD200" \
"CDEF:shading80=myusers,0.20,*" "AREA:shading80#FFE100" \
"CDEF:shading85=myusers,0.15,*" "AREA:shading85#FFF900" `

Whilst the output is looking nice, the actual code seems a bit long winded. Does anyone have a better way of doing this?


The information contained in this email and any attachment is confidential and
may contain legally privileged or copyright material.   It is intended only for
the use of the addressee(s).  If you are not the intended recipient of this
email, you are not permitted to disseminate, distribute or copy this email or
any attachments.  If you have received this message in error, please notify the
sender immediately and delete this email from your system.  The ABC does not
represent or warrant that this transmission is secure or virus free.   Before
opening any attachment you should check for viruses.  The ABC's liability is
limited to resupplying any email and attachments

More information about the rrd-users mailing list