[rrd-users] Order of legend-items in a stack

Wolfgang Powisch (privat) powo at powo.priv.at
Thu Jan 25 18:39:13 CET 2007


Hello list,

I have a rrdgraph question:
When using STACKs, the order of the AREA definitions is mandatory.
But the order of this definition forces the legend-items also to be in
this order. I would need some solution to change the order/position of
the legend-items ... is this possible.

For better understanding, what I need in detail, in a fancy ascii-graph:


=======================================================
^     out_c
|     out_b    <-- stacked
|     out_a
|-------------------------------- <--HRULE (zero-line)
|     in_a
|     in_b     <-- stacked (negative values)
|     in_c
|_____________________________________________>
  # in_a       # out_a
  # in_b       # out_b
  # in_c       # out_c
=======================================================


so the stack-order is:
   in_a,in_b,in_c,out_a,out_b,out_c
but the legend order should be:
   in_a,out_a,in_b,out_b,in_c,out_c


Thanks in advance for any hints !

--
Wolfgang Powisch



More information about the rrd-users mailing list