[rrd-users] Re: STACK problem with AREA graph

Alex van den Bogaerdt alex at ergens.op.het.net
Thu May 5 20:40:14 MEST 2005


On Thu, May 05, 2005 at 05:09:04PM +0000, David Lloyd wrote:

> If an AREA is the first, or only thing to be drawn on a graph I get a 
> segmentation fault.
> 
> eg with a LINE1 or LINE2 graph STACK works ok:
> 
> $ rrdtool graph line.png -s -6hour DEF:ccf=ccf.rrd:tally:AVERAGE 
> LINE1:ccf#aa00aa:ccf:STACK
> 496x168

I'm not sure if this is supposed to work or if this is just
a coincidence.

The docs still say:
"  When stacking, an element is not placed above the X-axis but rather on
   top of the previous element.  There must be something to stack upon.
"

> I'm assuming you can use STACK on the first thing to be drawn, and it will 
> stack the data over the x-axis, so that you don't have to make a special 
> case for the first area.

As a quick workaround: draw a line at zero.  You say stacking a line
works, thus you could start by doing this.  The next element, even if
it is an AREA, will be stacked on this line.  "LINE1:0" will already do.

HTH
Alex

--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://lists.ee.ethz.ch/rrd-users
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi



More information about the rrd-users mailing list