deepanker Report post Posted July 11, 2018 I am getting an error after on click method: Cannot read property 'DOWNLOAD' of undefined. render the chart code : function renderChart(){ FusionCharts.setCurrentRenderer('javascript'); var chartSettings = []; chartSettings['id'] = "new-chart-1"; / / i am using this id to export the all chart in blow code to batch export. chartSettings['type'] = '${request.contextPath}/rq-theme/charts/swf/MSLine.swf'; chartSettings['renderAt'] = div; chartSettings['swidth'] = '99%'; chartSettings['height'] = height; chartSettings['dataFormat'] = 'json'; chartSettings['dataSource'] = jsonDataArray; FusionCharts.ready(function(){ var fusioncharts = new FusionCharts(chartSettings); fusioncharts.render(); }); } My Function is : var batchExportConfig = function() { FusionCharts.batchExport({ "charts": [{ "id": "new-chart-1", }], "exportFileName": "batchExport", "exportFormats": "jpg", "exportAtClientSide": "1" }) } Button Code : <button style="z-index: 111111111111;" onclick="batchExportConfig()" id="export_charts" class="btn btn-primary">Chart Export</button> Share this post Link to post Share on other sites
Ayan Bhadury Report post Posted July 12, 2018 Hi, Please let us know which version of FusionCharts you are using so that we could assist you accordingly. However, please note FusionCharts batchExport functionality has been added from the version 3.11.0https://www.fusioncharts.com/dev/exporting-charts/using-fc-export-server/exporting-multiple-charts-in-a-single-image#exporting-multiple-charts-in-a-single-image-0 Share this post Link to post Share on other sites
deepanker Report post Posted July 12, 2018 HI All, I am using 3.12.1 your latest version. The file is able to export but size is 0 kb. I can not upload me exported image because size is 0 kb. And I am using below code: and this code run on the click event : var batchExportConfig = function() { FusionCharts.batchExport() } And I am following this link: https://www.fusioncharts.com/dev/exporting-charts/using-fc-export-server/exporting-multiple-charts-in-a-single-image Edited 2 hours ago by deepanker Share this post Link to post Share on other sites
deepanker Report post Posted July 12, 2018 I am using your latest version : //www.fusioncharts.com/lib/fcassets/3.12.2/fusioncharts.js please give the correct URL if I am wrong. Share this post Link to post Share on other sites
deepanker Report post Posted July 12, 2018 if you are not able to solve my query in the conversation then you can schedule the call on video call (Hangout). My Email id is [email protected] . Share this post Link to post Share on other sites
Ayan Bhadury Report post Posted July 13, 2018 Hi, The chart type which you are using has .swf as an extension which is no longer supported, also FusionCharts.setCurrentRenderer method is no longer required instead you could render the chart using FusionCharts.ready method. Also please note that for batch exporting you need to set the chart width and height in pixels not in percentage as of now, for reference please check the sample fiddle - http://jsfiddle.net/fusioncharts/pnqhtseq/ Share this post Link to post Share on other sites
deepanker Report post Posted July 13, 2018 Okay I can try. Share this post Link to post Share on other sites
deepanker Report post Posted July 13, 2018 Its now working. When I can download js file and link the local system: If I give the server path like this:- <script type="text/javascript" src="//www.fusioncharts.com/lib/fcassets/3.12.2/fusioncharts.js"></script> if I download the js file and give the local system. It can not render the chart, its give an error. Please give me suggestion : Share this post Link to post Share on other sites
Ayan Bhadury Report post Posted July 16, 2018 Hi, The above link is working fine at our end - http://jsfiddle.net/q5p0e9hf/ Please share us a scale downsample or a live URL link so that we can investigate it further. Share this post Link to post Share on other sites
tripathiankush Report post Posted February 26, 2019 Great post.very well done.Thanks for sharing. Share this post Link to post Share on other sites