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.