|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
Legend colour box without plotHi,
I'd like to plot a coloured 'legend box' without plotting to the graph. I create aggregate graphs with in/out values for a bunch of entities, in values first as a stack and then out values as a negative stack in two different colours. I'd like to place the in and out colours for each entity together. http://www.observernms.org/example-1.png For example, i'd like the legend to be : [GREENA] [BLUEA] <description> <values> [GREENB] [BLUEB] <description> <values> The graph is currently built like this : AREA:inB2976#B6D14B:'GigabitEthernet2/0/0 ':STACK GPRINT:inB2976:LAST:%6.2lf%sbps GPRINT:inB2976:MAX:%6.2lf%sbps GPRINT:totin2976:%6.2lf%sB COMMENT:' ' GPRINT:outB2976temp:LAST:%6.2lf%sbps GPRINT:outB2976temp:MAX:%6.2lf%sbps GPRINT:totout2976:%6.2lf%sB\\n AREA:inB2985#91B13C:'GigabitEthernet2/0/9 ':STACK GPRINT:inB2985:LAST:%6.2lf%sbps GPRINT:inB2985:MAX:%6.2lf%sbps GPRINT:totin2985:%6.2lf%sB COMMENT:' ' GPRINT:outB2985temp:LAST:%6.2lf%sbps GPRINT:outB2985temp:MAX:%6.2lf%sbps GPRINT:totout2985:%6.2lf%sB\\n AREA:outB2976#A0A0E5:: AREA:outB2985#8080BD::STACK HRULE:0#999999 Thanks in advance! adam. _______________________________________________ rrd-users mailing list rrd-users@... https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users |
|
|
Re: Legend colour box without plot----- Original Message -----
From: "Adam Armstrong" <lists@...> To: <rrd-users@...> 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 _______________________________________________ rrd-users mailing list rrd-users@... https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users |
|
|
Re: 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. > next to eachother with no legend for one of them. RRDTool always removes the box if there is no legend for it. using /s helped, but it's still a bit tall adam. _______________________________________________ rrd-users mailing list rrd-users@... https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users |
| Free embeddable forum powered by Nabble | Forum Help |