Search code examples
exportjchartfx

jchartfx exporting a chart to image


I want to export my chart to an image which i have created using http://www.jchartfx.com . I came across the export function in its documentation from the link - http://www.jchartfx.com/api/Chart/Export but the example as

chart1.export, "\\temp\\image.bmp"));

looks to be incorrect . Can anyone please help me with this . How can i export a chart to an image using this export function . Thank you


Solution

  • According to JChartFX guys it is not possible easily export charts using export function -

    "We are considering it, unfortunately when doing charts in HTML5 we chose SVG over Canvas. One of the things that would be very easy to do in Canvas would be to export the chart as an image. It is not as simple (AFAIK) when using SVG so we are trying to figure out how to support this in the future."

    However there is some code posted on their forums that allows to export charts. However, it is not simple, or clean way - http://community.jchartfx.com/forums/t/103.aspx