xml - Export ChartFX7 to SVG in Java -


can give example of exporting chartfx7 chart svg?

i've tried:

    bytearrayoutputstream baos = new bytearrayoutputstream();     m_chart.setoutputwriter(new svgwriter());     m_chart.exportchart(fileformat.external, baos);     
, :
    bytearrayoutputstream baos = new bytearrayoutputstream();     m_chart.setrenderformat("svg");     m_chart.rendertostream();     
both result in null pointer exception.

the following outputs xml:

    fileoutputstream fos = new fileoutputstream(debug.getinstance().createexternalfile("chart.xml"));     m_chart.exportchart(fileformat.xml, fos);     

batik libary can import java libary convert or create svg images. dont know chartfx7 standard way create svg in java.


Comments

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -