Sign in to follow this  
Lekshmi

Save Chart In Server While Rendering

Recommended Posts

Hi,

 

After rendering chart in a page, there is context options to save it as image. Is there any way to save the chart image(jpg/png) in server while rendering itself? Is it possible in Fusion charts and JSP?

 

Thanks in advance.

Share this post


Link to post
Share on other sites
Guest Sumedh

Hi,

 

Exporting a chart while rendering is not possible. Chart can be exported after the rendering process is done.

 

You can use event listener to export the chart automatically after rendering.

 

You would need to add event listener on the chart id after the chart gets rendered.

 

Ref. Code:

myChart.addEventListener("Rendered", function () { FusionCharts("myChartId").exportChart(); } );

 

Call exportChart function inside the addEventListener function.

 

For more information, please refer the following URL:

http://docs.fusionch...API/Events.html

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