Jump to content
Software FX Community

How can I export to SVG?


Recommended Posts

Can you give an example for exporting a ChartFX7 chart to SVG?I've tried:   ByteArrayOutputStream baos = new ByteArrayOutputStream();   m_chart.setOutputWriter(new com.softwarefx.chartfx.server.writer.svg.SvgWriter());   m_chart.exportChart(FileFormat.EXTERNAL, baos);and also:   ByteArrayOutputStream baos = new ByteArrayOutputStream();   m_chart.setRenderFormat("SVG");   m_chart.renderToStream();Both result in a null pointer exception.The following successfully outputs to XML:   FileOutputStream fos = new FileOutputStream(Debug.getInstance().createExternalFile("chart-java.xml"));   m_chart.exportChart(FileFormat.XML, fos);

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...