[rrd-users] rrdtool and SVG output - text is (almost) missing

Martin Sperl rrdtool at martin.sperl.org
Thu Mar 7 11:27:06 CET 2013


Hi!

Just tried to use SVG graphs with rrdtool for the first time and it 
"somewhat" worked.

The problem is that the text itself does not get shown (or at least only 
a tiny bit at the bottom of letters like "g", "p" or "[", "/", "]" shows)

(screenshot of the graph in firefox)

The only thing that is surprisingly readable is the "RRDTOOL/TOBI 
OETIKER" to the top right

The corresponding PNG graph with the same arguments works fine.

The one thing that I found is that it is not using <text>...</text> 
constructs but seems to process each of the letters separately - and 
that from a predefined symbol:

...
<symbol  id="glyph4-14">
<path  style="stroke: none;"d="M 3.921875 -7.53125 L 3.921875 -6 L 6 -6 L 6 -5.1875 L 3.921875 -5.1875 L 3.921875 -1.953125 C 3.921875 -1.515625 4 -1.208328 4.15625 -1.03125 C 4.3125 -0.854156 4.583328 -0.765625 4.96875 -0.765625 L 6 -0.765625 L 6 0 L 4.84375 0 C 4.125 0 3.619781 -0.140625 3.328125 -0.421875 C 3.036453 -0.713531 2.890625 -1.223953 2.890625 -1.953125 L 2.890625 -5.1875 L 1 -5.1875 L 1 -6 L 2.890625 -6 L 2.890625 -7.53125 L 3.921875 -7.53125 Z M 3.921875 -7.53125"/>
</symbol>
...
<g  style="fill: rgb(0%,0%,0%); opacity: 1;">
   <use  xlink:href="#glyph4-14  <view-source:https://monitor.qpass.com/xymon-cgi/graphable.sh/webstats.amx.qpass.net/vhostpv-webstats/pageview/*-cw%5C.qpass%5C.com/total-hps=SUM%7Conportal.rrd@webstats.amx.qpass.net/vhostpv-webstats/pageview/external*/total-hps=SUM%7Coffportal.rrd.svg?end=now&title=onportal%2Foffportal+pageview+TPS&hide_onportal=0&color_total=000000&label_offportal=offportal&stack_total=0&start=-1day&min=0&hide_offportal=0&xcdef=total%3Donportal%7Coffportal%7C%2B&label_onportal=onportal&stack=1#glyph4-14>"x="-1"y="303"/>
   <use  xlink:href="#glyph4-3  <view-source:https://monitor.qpass.com/xymon-cgi/graphable.sh/webstats.amx.qpass.net/vhostpv-webstats/pageview/*-cw%5C.qpass%5C.com/total-hps=SUM%7Conportal.rrd@webstats.amx.qpass.net/vhostpv-webstats/pageview/external*/total-hps=SUM%7Coffportal.rrd.svg?end=now&title=onportal%2Foffportal+pageview+TPS&hide_onportal=0&color_total=000000&label_offportal=offportal&stack_total=0&start=-1day&min=0&hide_offportal=0&xcdef=total%3Donportal%7Coffportal%7C%2B&label_onportal=onportal&stack=1#glyph4-3>"x="6"y="303"/>
...

To me it looks as if there is a bounding box problem (moving the letters 
around in firefox+firebug shows that it has to be something with those 
"paths"...)

Any Idea how i can fix that? (preferably without having to go thru the 
time-consuming hassle of upgrading all the OS provided libraries 
manually...)

Thanks,
                 Martin

P.s: adding the option --font "TITLE:120:Courier" increases the size 
title of the graph and it is a bit "easier" to identify the letters  
like p and g from the "lower" parts (whatever they are called 
typographically).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/rrd-users/attachments/20130307/d0b9fac7/attachment-0001.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 13029 bytes
Desc: not available
Url : http://lists.oetiker.ch/pipermail/rrd-users/attachments/20130307/d0b9fac7/attachment-0001.png 


More information about the rrd-users mailing list