vipin jain Report post Posted March 4, 2009 hi , I am using Fc 3.0.6 and try to save as image function . when i trying to save as image on right click on fc it working properly but its save FusionChartsSave.jsp instead of Fusin chart image . can any one tell me where i am wrong. my code is......[p] function makechart(){ var myChart = new FusionCharts("FusionCImageSaveWebContentCharColumn3D.swf?", "chart1Id", "400", "200", "0", "1"); myChart.setDataURL("xmlfile.xml"); myChart.render("chart1div"); var chartToPrint = getChartFromId("chart1Id"); myChart.saveAsImage(); } and in jsp imageSave='1' imageSaveURL='FusionCImageSaveImageSavingFusionChartsSave.jsp' are using in chart. [/p] Share this post Link to post Share on other sites
Rahul Kumar Report post Posted March 5, 2009 Hi, You would need to set these attributes imageSave='1' imageSaveURL='FusionCImageSaveImageSavingFusionChartsSave.jsp' in XML file i.e. xmlfile.xml not in jsp file. Share this post Link to post Share on other sites
vipin jain Report post Posted March 5, 2009 hi Thanks for reply..... actually i am using both in xmlfile.xml not in jsp file. (actually previous by mistake i wrote jsp instead of xml) imageSave='1' imageSaveURL='FusionCImageSaveImageSavingFusionChartsSave.jsp' in XML file So i am not getting what is actual problem. your every help would be appreciated. Share this post Link to post Share on other sites
Rahul Kumar Report post Posted March 5, 2009 Hi, Could you please let us know that you are running your code locally (C: or D:) or from a server (like, IIS, Apache, etc...). Because image saving feature will work only from server side if you are using FusionCharts V3.0.6 or V3.0.7. Share this post Link to post Share on other sites
vipin jain Report post Posted March 5, 2009 hi Rahul, I am using tomcat5.5........ Share this post Link to post Share on other sites
vipin jain Report post Posted March 5, 2009 hi Rahul, Now i am able to getting save as image option on right click for fusion chart but when i click on that process is going good but control go on FusionChartsSave.jsp and it save this jsp instead of fusion chart image. your every help would be appreciated. Share this post Link to post Share on other sites
vipin jain Report post Posted March 6, 2009 hi Rahul, when i debug Fusion chart i am getting following things Info: Chart loaded and initialized. Initial Width: 400 Initial Height: 200 Scale Mode: noScale Debug Mode: Yes Application Message Language: EN Version: 3.0.7 Chart Type: Single Series 3D Column Chart Chart Objects: BACKGROUND CANVAS CAPTION SUBCAPTION YAXISNAME XAXISNAME DIVLINES YAXISVALUES DATALABELS DATAVALUES TRENDLINES TRENDVALUES DATAPLOT TOOLTIP VLINES INFO: Chart registered with external script. DOM Id of chart is chartId INFO: XML Data provided using dataURL method. dataURL provided: D:Program FilesTomcat 5.5webappsFusionCImageSavedocumentxmlfile.xml dataURL invoked: D:Program FilesTomcat 5.5webappsFusionCImageSavedocumentxmlfile.xml XML Data: Share this post Link to post Share on other sites
vipin jain Report post Posted March 6, 2009 XML Data: Share this post Link to post Share on other sites
FusionCharts Support Report post Posted March 6, 2009 Hi, Could you please upgrade to v3.1 (www.fusioncharts.com/PUC)? Where we have provided a smater way of saving image using export feature? Share this post Link to post Share on other sites
vipin jain Report post Posted March 6, 2009 hi Sudipto , Thanks for your suggestion but i can't do that since i don't have userid/password for upgreate center. so i have to use v3.0.7 . please give me any perfect solution i am working on last two days with same problem. Share this post Link to post Share on other sites
Rahul Kumar Report post Posted March 6, 2009 Hi Vipin, FusionCharts V3.0.7's image saving feature requires a server to call its image generation code, and in your case you are using FusionChartsSave.jsp, so it should also be called from server. Your XML should be like the following: <chart caption="Monthly Unit Sales" xAxisName="Month" yAxisName="Units" imageSave="1" imageSaveURL="http://{path}/FusionChartsSave.jsp" decimalPrecision="0" formatNumberScale="0"><set name="Jan" value="462" color="AFD8F8" /><set name="Feb" value="857" color="F6BD0F" /><set name="Mar" value="671" color="8BBA00" /><set name="Apr" value="494" color="FF8E46" /><set name="May" value="761" color="008E8E" /><set name="Jun" value="960" color="D64646" /><set name="Jul" value="629" color="8E468E" /><set name="Aug" value="622" color="588526" /><set name="Sep" value="376" color="B3AA00" /><set name="Oct" value="494" color="008ED6" /><set name="Nov" value="761" color="9D080D" /><set name="Dec" value="960" color="A186BE" /></chart> Share this post Link to post Share on other sites
vipin jain Report post Posted March 6, 2009 (edited) hi Rahul, Thanks for reply..... Edited March 6, 2009 by Guest Share this post Link to post Share on other sites
vipin jain Report post Posted March 6, 2009 Hi Rahul, Thank you so much . finally i am able to save as image in fc3.0.7 using your idea. once again thank 's a lot........ Share this post Link to post Share on other sites
srividya_sharma Report post Posted April 2, 2010 I should say, Rahul is the best support guy on board! Anybody contesting that? Srividya Share this post Link to post Share on other sites
Guest Basundhara Ghosal Report post Posted April 4, 2010 Hi, Atleast not me. Share this post Link to post Share on other sites