Sign in to follow this  
Guest Basundhara Ghosal

On load of Chart Save at Server side

Recommended Posts

Hi Team,

 

 

 

Thanks for the great support i had till now.

 

 

 

Could you suggest me how to save a chart when page gets loaded without any manual intervention chart should be saved at server side in PDF/Image format.

 

 

 

 

 

Regards,

 

Ravi Krish

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi Ravi,

Please try using the export functionality in FC_Render method of the chart with the export action as 'download'.

Ref.-   <script type="text/javascript">

  function FC_Rendered(DOMId) {

  var chartobj = getChartFromId("chart1Id")

  if (chartobj.exportChart) {

// you can change the value of exportFormat to 'PNG' or 'PDF'

  chartobj.exportChart({ "exportFormat": 'JPG' });

}

  }

</script>

Also in case you use to save it on server-side you can also try using the 'save' action in your XML codes.

Please refer to the links below for further details on the same :-

Ref.- http://www.fusioncharts.com/docs?/ECServerOverview.html

http://www.fusioncharts.com/docs?/ECServerDownload.html

http://www.fusioncharts.com/docs?/ECServerSave.html

http://www.fusioncharts.com/docs?/ECXML.html

http://www.fusioncharts.com/docs?/ECProcess.html

http://www.fusioncharts.com/docs?/ECTerminology.html

Hope this helps. :)

Share this post


Link to post
Share on other sites

Hi Team,

 

 

 

i'm able to download the chart on server by right clicking on chart. But on load of page it does not capture the chart

 

how can i invoke the fuinction FC_Exported(objRtn) after page loads.

 

 

 

As i'm using jsp:include to display the chart is there any method where i can call the function when page is loaded.

 

 

 

Thanks,

 

Ravi Krish.

Share this post


Link to post
Share on other sites

Hello Ravi Krish,

Please take a look at the ButtonExportExample at http://www.fusioncharts.com/forum/Topic27616-33-1.aspx#bm28873

Please change the path to .swf, .jsp files, before testing.

The server-side export is initiated from button click. You can modify it to initiate once the chart renders. [ by writing a FC_Rendered(DOMId) function ] like this:

function FC_Rendered ( DOMId )
{
// invoke export on the chart here
}

Hope this helps :)

Edited by Guest

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