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. Thus: 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. HTH -- Alex van den Bogaerdt http://www.vandenbogaerdt.nl/rrdtool/ _______________________________________________ rrd-users mailing list [email protected] https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
