uttam86 Report post Posted October 1, 2012 I am using funnel chart.As per my requirement I have a drop down from which I should be able to download the chart as image,pdf,svg formats. So I wrote the code like this. function export(imagetype){ var chartObject = FusionCharts('mychart'); chartObject.exportChart({ exportFormat : imagetype}); } sp for the first time when I click on the download as jpg ,the function works fine ,I am able to download the chart. Then When I am clicking the same button again,nothing is happening,not even an error is showing. So I am stuck at this,any help will be grateful. Share this post Link to post Share on other sites
Guest Bindhu Report post Posted October 2, 2012 I am using funnel chart.As per my requirement I have a drop down from which I should be able to download the chart as image,pdf,svg formats. So I wrote the code like this. function export(imagetype){ var chartObject = FusionCharts('mychart'); chartObject.exportChart({ exportFormat : imagetype}); } sp for the first time when I click on the download as jpg ,the function works fine ,I am able to download the chart. Then When I am clicking the same button again,nothing is happening,not even an error is showing. So I am stuck at this,any help will be grateful. Hi, Only one time click is supported, as of now. There is already an improvement logged for the same. I will update this thread once it is fixed. Thank you for your continued support and patience. Share this post Link to post Share on other sites
uttam86 Report post Posted October 10, 2012 Hi Thanks For your reply.So in this case I need to reload the page. So When I tried to attach a callback function like below: var chartObject = FusionCharts('mychart'); chartObject.exportChart({ exportFormat : 'png',exportCallback:'myCustomfunction'}); But it is not calling the callback function.Please suggest whether I am going on right way? Share this post Link to post Share on other sites
Guest Bindhu Report post Posted October 11, 2012 (edited) Hi, If you wish to call a custom JavaScript method, then create a JavaScript method in your web page that gets called once the image has been saved on server. Next, Specify the name of this function in exportCallback attribute of XML. If you do not specify any names here, by default, a JavaScript function named FC_Exported is called. For more details, please refer to the link below, http://docs.fusionch...ntCallback.html Hope this helps! Edited October 11, 2012 by Bindhu Share this post Link to post Share on other sites
Guest Sumedh Report post Posted October 11, 2012 Hi, Could you please test following link in your browser? http://docs.fusioncharts.com/charts/Code/ExportChartSamples/ClientSide/Callback.html Also, did you get any error message while implementing the JavaScript Callback? Share this post Link to post Share on other sites