swapprose

Members
  • Content count

    9
  • Joined

  • Last visited

About swapprose

  • Rank
    Forum Newbie
  1. Hi, But I want to render within asp button click event. How to do? Thanks swapprose
  2. Hi, Iam dynamically creating xml file when clicks on asp button. Depends on the xml data I need to change the width of the chart dynamically. So what I did was : (ignore dynamic xml for timebeing here) <% @ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm6.aspx.cs" Inherits="WindFramework.WebForm6" %><! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">< html xmlns="http://www.w3.org/1999/xhtml" >< head runat="server"> <title>FusionCharts & JavaScript - Basic Example</title> <script language="Javascript" src="../FusionCharts/FusionCharts.js" type="text/javascript"></script> <script language="JavaScript" type="text/javascript"> function fncheck(obj) {alert(obj+ "1"); var chart1 = new FusionCharts("../FusionCharts/Column3D.swf", "chart1Id", "700", "900", "0", "1");chart1.setDataXML( "<chart><set label='A' value='10' /><set label='B' value='11' /></chart>");chart1.render( "chart1div"); } </script></ head>< body> <form id="form1" runat="server"> <asp:Button ID="btnss" Text="sss" runat="server" Width="30px" onclick="btnss_Click"/> <div id="chart1div">FusionCharts </div> <script language="JavaScript" type="text/javascript"> var chart1 = new FusionCharts("../FusionCharts/Column3D.swf", "chart1Id", "400", "300", "0", "1");chart1.setDataXML( "<chart><set label='A' value='10' /><set label='B' value='11' /></chart>");chart1.render( "chart1div"); </script> </form></ body></ html> in cs file: protected void btnss_Click(object sender, EventArgs e){ btnss.Attributes.Add( "onclick", "javascript:fncheck('err');");} When clicked on aspx button Iam able to see the vertical scrollbar in between and chart width is again going to actual width i.e initial width here it is 400,300. Iam not able to get the chart width and height 700,900 from the fncheck function. Here it is executing that function also, able to see alert msg. If Iam using html button Iam not having any issues, everything is working fine with this html button. According to my requirement I need to use server side button instead of html button due to dynamic creation of xml file. How to achieve this? Thanks.
  3. Not able to see the charts in the deployed link.

    my problem is solved. I have to mention website name and then foldername instead of "../FusionCharts/"
  4. Not able to see the charts in the deployed link.

    Hi, Here the problem is when Iam making my application as virtual directory then chart is not displaying. suppose if my url is like "http://localhost/...." then chart is not coming. If Iam running application locally without making virtual directory then chart is coming. here my url will be http://localhost:2345/.... 2345 is port number. I kept the swf files in the FusionCharts folder within the application. Data.xml is in the application directly. do I need to chage the path if making virtual directory? Presently my code is like this: <object id="obj3d" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="2900" height="300" > <param name="movie" value="../FusionCharts/Column3D.swf" /> <param name="FlashVars" value="&dataURL=Data.xml&chartWidth=900&chartHeight=300"> <param name="quality" value="high" /> <embed src="../FusionCharts/Column3D.swf" flashvars="&dataURL=Data.xml&chartWidth=900&chartHeight=300" quality="high" width="2900" height="300" name="Column3D" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </object>Thanks, Swapprose
  5. How to rerender the chart in the code behind file.
  6. Not able to see the charts in the deployed link.

    I am not getting any error, that chart area is coming as white screen in the deployed link only.In the normal local application chart is displaying properly.
  7. Hi, I am using fusionchartsv3. I created chart in the visual studio 2008 and c#.net and deployed the link. In the local application I am able to see the chart but in the deployed link not able to see the chart. Can anyone please help me. what could be the problem? Thanks, Swpprose
  8. Thanks for your reply. But I am not able to get the chat control/object id to change the width. Thanks.
  9. Hi I followed the creating first chart in this fusioncharts.Iam using visual studio 2008 and c#.net. dynamically i am loading xml from database in the code behind file. and using the below html code from the sample. <body bgcolor="#ffffff"> <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="900" height="300" id="Column3D" > <param name="movie" value="../FusionCharts/Column3D.swf" /> <param name="FlashVars" value="&dataURL=Data.xml&chartWidth=900&chartHeight=300"> <param name="quality" value="high" /> <embed src="../FusionCharts/Column3D.swf" flashVars="&dataURL=Data.xml&chartWidth=900&chartHeight=300" quality="high" width="900" height="300" name="Column3D" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </object> My xml file data is very huge and need to change the chart width. so whatever keeping the size is not sufficient due to this huge data. I want to get the control of the chart and able to change the width of the chart dynamically in the codebhind file. but Iam not getting the control of the chart to change the width. I want to do this in code behind file. How to achieve this. and one more also: I am getting label as fusion charts :infosoft global solution by default. I want to remove this default label. Iam not able to remove this. Iam using free version. Please help me. Thanks.