Sign in to follow this  
chenka

Can I Export Batch Export In Client-Side

Recommended Posts

I see demo in http://www.fusioncha...ver_export.html Because I want to one click export

I can modify code to batch export like this

 

function ExportMyCharts() {

var chartObject1 = getChartFromId('myChart1');

if( chartObject1.hasRendered() ) chartObject1.exportChart();

// export another chart

var chartObject2 = getChartFromId('myChart2');

if( chartObject2.hasRendered() ) chartObject2.exportChart();

}

but it will export each chart to seperate file not like client-side that include all chart to single file

1.How can I batch export in less click and all chart save in single file by server-side. Is it support?

2.Can i batch export in client-side without UI window

I mean, when click "Export as PDF" will be download immediately as server-side, not show save button in UI

http://www.fusioncha...tch_export.html

3.not involve above question in export file has 3 type to select.Can I show only png and pdf in select box

 

Thank you

Edited by chenka

Share this post


Link to post
Share on other sites
Guest Angshu

Hi,

 

Welcome to FusionCharts Forum!smile.gif

 

Please find the answers below:

 

1.How can I batch export in less click and all chart save in single file by server-side. Is it support?

 

I am afraid, FusionCharts does not support server side batch export, at this time.

 

2.Can i batch export in client-side without UI window

I am afraid, FusionCharts does not support client side batch export without using UI window, at this time. You would need to click on the save button to save the chart in the your desired format.

 

3.not involve above question in export file has 3 type to select.Can I show only png and pdf in select box

 

exportFormats='JPG=Export as JPEG'

You would need to use exportFormats attribute, include the pipe "|" and add your text.

 

exportFormats='JPG=Export as JPEG|PNG=Export as PNG'

Hope this helps.smile.gif

 

Share this post


Link to post
Share on other sites

I try to limit 2 type to export but not work not anything happen

 

 

var myExportComponent = new FusionChartsExportObject("fcExporter1", "assets/FCExporter.swf");

myExportComponent.sourceCharts = ['sampleChart','Piechart','barchart'];

myExportComponent.componentAttributes.fullMode='1';

myExportComponent.componentAttributes.saveMode='batch';

myExportComponent.componentAttributes.showAllowedTypes = '1';

myExportComponent.componentAttributes.width = '150';

myExportComponent.componentAttributes.height = '60';

myExportComponent.componentAttributes.defaultExportFormat='pdf';

myExportComponent.exportAttributes.exportFormats='jpg=Export as JPEG|png=Export as PNG'; << It not work even change jpg and png to uppercase

//myExportComponent.componentAttributes.exportFormats='JPG=Export as JPEG|PNG=Export as PNG'; <<I try to use commepentatrribute but not work so i comment it

post-16133-035415200 1305087898_thumb.png

Edited by chenka

Share this post


Link to post
Share on other sites
Guest Angshu

Hi,

 

You are always welcome.smile.gif

 

We are glad to know that you have managed to resolve your problem.

 

Keep smiling and keep FusionCharting!biggrin.gif

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this