Bharath Pj Report post Posted January 17, 2018 I want to export chart as image format like an attachment. And i have done up to view chart using React.js but i cant get the chart as an attachment for sent mail to client. How can i done this? please give the example code for this...... am trying using this below code to get chart attachment var chartObject = new FusionCharts(DOMId); chartObject.exportChart(); How can i implement this as complete.Thanks Share this post Link to post Share on other sites
Ayan Bhadury Report post Posted January 17, 2018 Hi, FusionCharts provides you the feature of exporting charts into multiple formats such as jpg, png etc.. however in order to attach the image file to an email you need to export the chart and manually attach that file to the email, as of now there is no native feature to attach the image automatically to the email. To know more about export feature please refer this link - https://www.fusioncharts.com/dev/exporting-charts/using-fc-export-server/exporting-charts-as-image-and-pdf.html Also please check the export feature sample using react js - http://jsfiddle.net/f0b2e0ms/97/ Share this post Link to post Share on other sites
Bharath Pj Report post Posted January 17, 2018 The above links are didn't clear my doubt. I am asking about, how do i do that manual exporting???? please provide a detailed solution. Thanks Share this post Link to post Share on other sites
Ayan Bhadury Report post Posted January 17, 2018 You need to export the chart and attach that image file to the mail manually from your file explorer. Share this post Link to post Share on other sites
Bharath Pj Report post Posted January 17, 2018 okay i understand.But i want to sent the attachment to the server before download or without download the file. is it possible in fusion chart? Share this post Link to post Share on other sites
Ayan Bhadury Report post Posted January 17, 2018 In order to save the exported image into the server you could use private export server of FusionCharts and set exportAction attribute as save, to know more check this link - https://www.fusioncharts.com/dev/exporting-charts/using-fc-export-server/configuring-the-export-feature.html Share this post Link to post Share on other sites
Bharath Pj Report post Posted January 17, 2018 Okay Thanks. i will check and come back to you... Share this post Link to post Share on other sites
Bharath Pj Report post Posted January 18, 2018 Can i save the attachment in the project folder without click download???? Thanks Share this post Link to post Share on other sites
Ayan Bhadury Report post Posted January 18, 2018 Yes you could use FusionCharts export API method and you can call this on javascript settimeout event, please check this link -https://www.fusioncharts.com/dev/api/fusioncharts/fusioncharts-methods.html#exportChart Share this post Link to post Share on other sites