[rrd-users] Legend colour box without plot

Alex van den Bogaerdt alex at vandenbogaerdt.nl
Wed Oct 14 14:03:27 CEST 2009


----- Original Message ----- 
From: "Adam Armstrong" <lists at memetic.org>
To: <rrd-users at lists.oetiker.ch>
Sent: Wednesday, October 14, 2009 11:41 AM
Subject: [rrd-users] Legend colour box without plot


> Hi,
>
> I'd like to plot a coloured 'legend box' without plotting to the graph.


Not sure if it's going to work, but my first attempt would be to have a CDEF 
to always produce NaN, and just plot this one.

Something like:
cdef:nan=UNKN,ds0,POP
LINE1:nan#00CC00:input1
LINE1:nan#0000FF:output1
LINE1:nan#FF0000:input2
LINE1:nan#FFCC00:output2

and so on.

You can plot the real data without a legend, and do so in the correct 
stacking order.

HTH
Alex



More information about the rrd-users mailing list