Sign in to follow this  
bomproapp

Export Chart As Image Server Side

Recommended Posts

Hi,

I try to export image file on the server side by following this instruction http://docs.fusioncharts.com/charts/contents/index.html?exporting-image/server-side/ECServerSave.html

I run my project on Grails application base on groovy language using gsp as view. All jar and js file I downloaded from FusionCharts_Evaluation version.

 

What is my problem is:

When I tested exporting as JPG image, after follow all instruction step, it seem to run fine but when I turn off my internet connection the browser try to redirect to

url http://export.highcharts.com/. I tried to find this url in the source code and found that from the FusionCharts.HC.js file. Hence, I changed this url in this

file to be my url-pattern which was set in the web.xml, localhost:8080/myProject/FCExporter, and retest again. This time what I get is

 

statusMessage= Insufficient data. Width/height not provided.Background Color not specified. Taking White (FFFFFF) as default background color.

statusCode=0

width=0

height=0

DOMId=null

 

I tried to call my servlet directly from the browser with url localhost:8080/myProject/FCExporter it showed the same result above so I don't sure whether parameters is sent

to my servlet or not but if I changed url back to http://export.highcharts.com/, it's work fine.

 

I've tried to find the problem and I found the post http://forum.fusioncharts.com/topic/11304-problem-exporting-chart-as-image/ but no solution for this.

 

Please advice

Thanks in advance.

 

 

 

 

Share this post


Link to post
Share on other sites
Guest Sashibhusan

Hi,

 

Could you please confirm, whether you are trying to export JavaScript Charts image to server?

 

If yes, please note that during export of the pure JavaScript charts, the chart data is sent to external servers for processing and converting to image. User must have an active internet connection for this feature to work.

 

In case you want to process the exported data on your own server, you may setup the chart to send the data to your own server.

 

For more information on "Exporting Pure JavaScript Charts", please follow the link below:

http://docs.fusioncharts.com/charts/contents/?exporting-image/ECPureJS.html

 

Hope this helps!

 

Awaiting your valuable response.

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