Re: Exporting chart to SVG format

luminatis <[email protected]>
Newsgroups gmane.text.xml.batik.user
Message-ID <[email protected]>
Sorry for the repost, I just find out the problem :
I edited the SVG file manually and it seems that when I replace this line:

<svg xmlns:xlink="http://www.w3.org/1999/xlink" style="fill-opacity:1;
color-rendering:auto; color-interpolation:auto; stroke:black;
text-rendering:auto; stroke-linecap:square; stroke-miterlimit:10;
stroke-opacity:1; shape-rendering:auto; fill:black; stroke-dasharray:none;
font-weight:normal; stroke-width:1; font-family:&apos;Dialog&apos;;
font-style:normal; stroke-linejoin:miter; font-size:12; stroke-dashoffset:0;
image-rendering:auto;" xmlns="http://www.w3.org/2000/svg">

with this line: 

<svg xmlns:xlink="http://www.w3.org/1999/xlink" style="fill-opacity:1;
color-rendering:auto; color-interpolation:auto; stroke:black;
text-rendering:auto; stroke-linecap:square; stroke-miterlimit:10;
stroke-opacity:1; shape-rendering:auto; fill:black; stroke-dasharray:none;
font-weight:normal; stroke-width:1; font-family:&apos;Dialog&apos;;
font-style:normal; stroke-linejoin:miter; font-size:12; stroke-dashoffset:0;
image-rendering:auto;" xmlns="http://www.w3.org/2000/svg"
width="800" height="800">

So I just add width and height clauses, and it worked fine !

So, I need to change that in my SVG generation, I tried to add these lines:

svgGenerator.getRoot().setAttribute("width", "800");
svgGenerator.getRoot().setAttribute("height", "800");

But it seems that doesn't work : I tried to read the value of theses
attributes after, and these are empty.

Is there any mean I can use to change that?        

--
View this message in context: http://batik.2283329.n4.nabble.com/Exporting-chart-to-SVG-format-tp4496222p4498506.html
Sent from the Batik - Users mailing list archive at Nabble.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.