Sign in to follow this  
otaconsn

Problem with Server Side Export to PNG

Recommended Posts

Hi guys,

I've posted previously about this issue but I havn't had any responses from the FusionCharts team for a while. Okay, here is my issue (again). I am trying to automatically save a rendered chart to a png on the server-side but it's not working. I can right click on the chart and select Save as PNG (or any of the other formats and they work perfectly) and the image (or file) gets saved to the folder I have specified in the FCExporter.php file. It's the automatic export/save to PNG on the server-side that is not working.

I am attaching some sample data and code (including my FCExporter.php file) in the zip files. I would appreciate a response as soon as you can.

Regards,

test.zip

FCExporter.zip

Share this post


Link to post
Share on other sites

Hi,

 

 

 

Your code has defined a chart DOMId with the same name as the JavaScript object of the chart ...myChart.

 

 

 

Though I am not aware of what exactly 'is not working' but I guess, you can try either :

 

 

 

a) once setting different name for chart DOMId and chart JS object.

 

 

 

or

 

 

 

;) replace chartObject = getChartFromId('myChart'); with chartObject = document.getElementById('myChart');

 

 

 

Hope this helps.

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi,

Glad that your issue is resolved.

Happy FusionCharting. ;)

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