Fel

Saving Chart To Image

Recommended Posts

Hi,

 

Can someone help me?

I want to do something like this:

-- generate a chart and after generating create an image snapshot of the chart that is saved as a jpeg format in the server directory.

in other words, everytime a chart is generated their is a corresponding image file in the server.

 

 

I have a chart generated thru this code:

 

var graphType = '../charts/MSBar3D.swf';

 

var graphWidth = '600';

var graphHeight = '550';

 

$("#myChart2Container").insertFusionCharts({

swfUrl: graphType,

width: graphWidth,

height: graphHeight,

dataFormat: "json",

dataSource: json.html,

});

 

now, what to do to create those images?

 

 

Thanks.

 

 

 

 

 

 

Share this post


Link to post
Share on other sites
Guest Angshu

Hi,

 

Welcome to FusionCharts Forum! smile.gif

 

Starting FusionCharts v3.0.7, you could export your charts as images. And FusionCharts v3.1 adds new dimensions to it, by allowing you to export as PDFs as well, and also lets you choose whether to export the charts at client-side or server-side.

 

For more details about server side export, please visit the links below:

 

http://docs.fusionch...erOverview.html

 

http://docs.fusionch...erDownload.html

 

http://docs.fusionch...ServerSave.html

 

Hope this helps.

Share this post


Link to post
Share on other sites

Hi,

 

Thanks for the info.

 

But still having trouble creating the image.

 

Do you have a sample script for this?

 

 

Thanks

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