[rrd-developers] Legend being in the wrong order

alex at ergens.op.Het.Net alex at ergens.op.Het.Net
Mon May 29 13:49:30 MEST 2000


Hi,

Most of us will be aware of the problem as indicated on the subject line.

I'm not so fluent in C so I may have misunderstood it but I think that
currently a linked list is made containing each element to graph.  New
elements are appended to the end.  For normal lines and areas this is
not a problem however for stacked lines and areas this is a problem.

With a few more pointers this problem can be solved.  We need

1 - pointer towards the end of the list (already there)
2 - pointer to the end of the last complete (together with gprints) line
    or area
3 - pointer to the end of the current inserted item

LINEx and AREA is appended at the position where pointer 1 points
GPRINT is appended/inserted at the position where pointer 3 points
STACK is inserted where pointer 2 points

wrong order:
1) line1
2) text-for-line1
3) area
4) text-for-area
5) stack
6) text-for-stack
7) stack
8) text-for-stack
9) line1
...

right order:
1) line1
2) text-for-line1
7) stack
8) text-for-stack
5) stack
6) text-for-stack
3) area
4) text-for-area
9) line1
...

any comments?
-- 
   __________________________________________________________________
 / alex at slot.hollandcasino.nl                  alex at ergens.op.het.net \
| work                                                         private |
| My employer is capable of speaking therefore I speak only for myself |
+----------------------------------------------------------------------+
| http://faq.mrtg.org/                                                 |
| http://rrdtool.eu.org  --> tutorial                                  |
+----------------------------------------------------------------------+

--
Unsubscribe mailto:rrd-developers-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-developers-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-developers



More information about the rrd-developers mailing list