Sign in to follow this  
Rahul Kumar

How can I convert this code?

Recommended Posts

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

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&registerWithJS=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&registerWithJS=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

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