DaeSeong Report post Posted January 28, 2009 Hello All. I want to save chart as image. so I find example code( http://www.fusioncharts.com/Docs/Contents/JS_saveAsImage.html) <div id="chart1div"> FusionCharts </div> <script language="JavaScript"> var chart1 = new FusionCharts("../Charts/Column3D.swf", "chart1Id", "400", "300", "0", "1"); chart1.setDataXML("<chart imageSave='1' imageSaveURL='FusionChartsSave.aspx'><set label='A' value='10' /><set label='B' value='11' /></chart>"); chart1.render("chart1div"); </script> <BR> Javascript is used in this code. But I don't konw how to convert my code to javascript code(dataURL, setDataXML etc.) Please, Help Me..... Below code is used to present a chart in my web sites. --------------------------------------------------------------------------------------------------------------- <div align="left" id="divChart2" runat=server> <textarea id=Chart2 style="display:none;" rows="0" cols="0"> <OBJECT classid="clsid: D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="930" HEIGHT="<%=intHeight %>" id="OBJECT1" align="" VIEWASTEXT> <PARAM name=movie VALUE="../../Common/CChart/Gantt.swf?dataURL=ProjectList_XML.aspx?Value=<%=strValue%>"> <param NAME="FlashVars" VALUE=""> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor value=#FFFFFF> <EMBED src="../../Common/CChart/Gantt.swf?dataURL=ProjectList_XML.aspx?Value=<%=strValue%>" FlashVars="" quality="high" bgcolor="#FFFFFF" WIDTH="930" HEIGHT="<%=intHeight %>" NAME="FC_2_3_Column2D" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED> </OBJECT> </textarea> <script language="javascript" src="../../Common/CChart/cmmEmbedPlugin.asp?txtid=Chart2"></script> </div> --------------------------------------------------------------------------------------------------------------- Share this post Link to post Share on other sites
Rahul Kumar Report post Posted January 29, 2009 Hi, Please see the code below: <OBJECT classid="clsid: D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="930" HEIGHT="<%=intHeight %>" id="OBJECT1" align="" VIEWASTEXT> <PARAM name=movie VALUE="../../Common/CChart/Gantt.swf?dataURL=ProjectList_XML.aspx?Value=<%=strValue%>"> <param NAME="FlashVars" VALUE="chartWidth=930&chartHeight=<%=intHeight %>&DOMId=ChartId®isterWithJS=1"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor value=#FFFFFF> <EMBED src="../../Common/CChart/Gantt.swf?dataURL=ProjectList_XML.aspx?Value=<%=strValue%>" FlashVars="chartWidth=930&chartHeight=<%=intHeight %>&DOMId=ChartId®isterWithJS=1" quality="high" bgcolor="#FFFFFF" WIDTH="930" HEIGHT="<%=intHeight %>" NAME="FC_2_3_Column2D" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED> </OBJECT> Also please, the attached html file will explain in detail. MSArea2D.zip Share this post Link to post Share on other sites
DaeSeong Report post Posted January 29, 2009 Thank you for replying. But I want to save chart as images when right click on chart. like below Share this post Link to post Share on other sites
Rahul Kumar Report post Posted January 29, 2009 Hi, You would need to add imagesave='1' and imagesaveURL='{URL to FusionChartsSave.xxx}' into <chart> element. Also please read the docs here: http://www.fusioncharts.com/docs/Contents/SAISetting.html Share this post Link to post Share on other sites