Sign in to follow this  
vipin jain

save As image not save image

Recommended Posts

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

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

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

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

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

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

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

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

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