Sign in to follow this  
uttam86

Export Funnel Chart As Image Not Working.

Recommended Posts

Hi

I am using funnel chart .As per my requirement I have a custom drop down .On click of which the chart needs to be downloaded.

I have three options there

a)Export as PNG

b)Export as JPG

c)Export as PDF

so my export function looks like dis :

export_funnelChart(img_format){

 

var chartObject = FusionCharts(graphName);

chartObject.exportChart({exportFormat: 'image_format'});

}

The problem is when the image format is "pdf",then I am able to export the chart.

But in case of "png" / "jpg" i am getting a blank file.It was working fine before.

my image_format for jpg and png are "png" and "jpg".

Please help on this.

Thanks in advance.

Share this post


Link to post
Share on other sites
Guest Sumedh

Hi Uttam,

 

Welcome to FusionCharts Forum! smile.gif

 

Apologies for the delayed response.

 

Could you please modify your code as below and try once again?

 

Ref. Code:

var chartObject = FusionCharts(graphName);
chartObject.exportChart({exportFormat:image_format});
}

 

 

Remove the space between exportFormat and image_format. Also, remove the single quotes of image_format and try once again.

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