Sign in to follow this  
woodykiddy

How To Export Multiple Charts And Save Them On The Server

Recommended Posts

Hi

 

I am just wondering, what would be the best way to implement the server-side exporting for multiple charts? For example, I have a page with 3 charts on it and I want them all to be exported to the server and saved as images which I can reference later on.

 

Can anyone give me some pointers please? Thanks

Share this post


Link to post
Share on other sites
Guest Sumedh

Greetings, smile.gif

 

You would need to use exportChart() function for each chart on the page.

 

Please note, exportChart() function should be used with different DOM Id's.

 

Refer the following code:

 

Ref. code:

 

<script type="text/javascript"><!--

function ExportMyCharts(){

var chartObject1 = getChartFromId('myChartId1');

if( chartObject1.hasRendered() )

chartObject1.exportChart();

 

var chartObject2 = getChartFromId('myChartId2');

if( chartObject2.hasRendered() )

chartObject2.exportChart();

 

Also, you would need to change the path for ExportHandler file(FCExporter file - php/aspx).

 

You would need to set export related attributes under the chart element.

 

exportHandler='link of the exporthandler file'

exportEnabled='1'

exportAtClient='0'

exportAction='save/download'

 

Please find attached sample code for your reference.

 

Hope this helps. smile.gif

Export.zip

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