JDonoghue Posted September 16, 2008 Report Share Posted September 16, 2008 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); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.