Sign in to follow this  
uttam86

Funnel Chart Export Chart

Recommended Posts

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

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

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

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 by Bindhu

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