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.
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
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?