Can anybody give an example for exporting a ChartFX7 chart to SVG?
I've tried:
ByteArrayOutputStream baos = new ByteArrayOutputStream(); m_chart.setOutputWriter(new 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.xml")); m_chart.exportChart(FileFormat.XML, fos);