This document tried to answer the most frequently asked questions in relation to Graph::Easy, as well as for the MediaWiki integration.
This document tried to answer the most frequently asked questions in relation to Graph::Easy, as well as for the MediaWiki integration.
When I click a link in an SVG graph, the new page is opened inside the graph, instead of in a new window/tab or even in the same window.
Answer:
This is a Firefox 1.5 bug. Firefox will open links in SVGs by default "inline", and
it even ignores attributes like "xlink:show" and "xlink:target".
The bug is reportedly already
fixed in the Mozilla codebase, so it should work in the near future in a browser
on your system.
In the meantime upgrade Graph::Easy::As_svg,
as newer versions contain a workaround for this bug.
See also bug #315389 in the bugzilla.
The text on nodes is to big, and sometimes even crosses the node border.
Answer:
Yet another Firefox bug. Firefox 1.5 renders the text in the user-specified font-size,
ignoring the font-site set inside the SVG document. Since the rest of the
generated SVG code assumes the set size, the nodes are too small (or too big).
This isn't really fixable from my end, because the SVG generator cannot know what
text size the user specified in the Preferences
.
You can see the bug in action when you use the text-zoom (CTRL
plus
+
or -
), Firefox will zoom the font/text, but not
the rest of the SVG, thus the graphic quickly becomes garbled.
I see only garbled graphs, f.i. it has black rectangles or the labels are not properly centered.
Answer:
Make sure you are using the latest version of your browser. Opera 8.5 does only
support SVG Tiny, which is not enough to properly display the SVG generated
by Graph::Easy. Likewise, Opera 9.0 only supports SVG Basic, which sadly
also misses key features like centered text.
Other browsers seem to lack support for CSS-styles inside SVG, and thus will
render the fillcolor inside nodes wrongly (the default is black, and the
overriden color from the CSS is ignored by these buggy browsers).
Answer:
If you have questions, feel free to send me an email (Gnupg key). Bugreports should go to rt.cpan.org.