[rrd-users] Legend alignment
tobi at oetiker.ch
Tue Dec 11 00:27:40 CET 2007
In rrdtool 1.3 there is a special TEXTALIGN tag that lets you
modifuy the default text alignement behaviour
Yesterday Alex van den Bogaerdt wrote:
> On Mon, Dec 10, 2007 at 04:45:14PM -0500, Cole Tuininga wrote:
> > I'm running rrdtool 1.2.23 on a freebsd system and am having a little
> > trouble with the alignment of the legend. Typically, the graphs I'm
> > generating end up having a legend with three items per row, and I want
> > each of these columns to be lined up. The problem seems to occur only
> > on the second and third column of the last line in each graph.
> Confirmed using 1.2.12 and 1.2.25
> What's happening: rrdtool evenly divides remainging space, except on the
> last row.
> Maybe someone else has a smarter solution, but I just tried this one
> and it seems to work:
> If you always have up to three items on a row, suffix every third
> label with '\l'. This will start a new row.
> AREA:GRAPH4#764913:Record Type\:CNAME.\l:STACK \
> AREA:GRAPH9#5e676c:Record Type\:MX .\l:STACK \
> and so on.
> Adjust "every third" when you alter the graph width or the amount
> of characters per label.
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten
http://it.oetiker.ch tobi at oetiker.ch ++41 62 213 9902
More information about the rrd-users