Sign in to follow this  
gougoul

Slient client-side expot, possible ?

Recommended Posts

Hi all,

 

 

 

A simple question, once the chart is rendered, with the format specified etc. Is is possible to directly call on the exporter a save() method or so, instead of having to display the ugly drop downs etc ?

 

 

 

Or is the only way to achieve this going through client/server ?

Edited by Guest

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi,

Welcome to FusionCharts forum. :)

In case you are using server-side export you can directly save the chart as image/PDF with a single button-click.

In this case you need to use the server-side export handler and need to call the JavaScript function that will save the chart in download format.

Ref.- http://www.fusioncharts.com/docs?/ECServerDownload.html

Hope this helps. :)

Share this post


Link to post
Share on other sites

Hi thanks for the reply.

 

 

 

I figured that out as well, however the question was to find out whether it was possible to call a save method on the flash exporter that would simulate a click on the "save" button, helping thus to hide the exporter...

 

 

 

But I guess it isn't possible...

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi,

Could you please try calling the exportChart() function for the same.

Ref.-  <script type="text/javascript">

  function ExportMyChart() {

  var chartObject = getChartFromId('myChart');

  if( chartObject.hasRendered() ) chartObject.exportChart();

}

  </script>

For further reference please refer to :-

Ref.- http://www.fusioncharts.com/docs?/ECJavaScript.html

Hope this helps. :)

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