Damon
Members-
Content count
14 -
Joined
-
Last visited
About Damon
-
Rank
Junior Member
-
Hi, Thanks for your help. But for now we only use FusionCharts XT in our project and it is difficult for us to repalce it with FusionWidgets XT, becauseFusionCharts XT is used everywhere. So is there any way that I can do to implement such functionality by using FusionCharts XT? Thanks very much.
-
Hi, I use setJSONData(ret) to refresh chart data from time to time. It works, but the refresh style isn't what I want. It seems like that the whole chart reload again. What I want is just the columns reload(for column chart),not including the canvas. What should I do? Hope for helps, Thanks in advance. BTW, I am using Flash FusionCharts.
-
Hi~ I am using ASPxTimert+ASPxCallback+FusionCharts to updating the data of chart on regular time. Updating data is working. But the chart blinks every time. How can I do to make the chart not blink. Thanks Below is my Code. <%@ Control Language="C#" AutoEventWireup="true" CodeFile="FusionChart.ascx.cs" Inherits="FusionChart" %> <%@ Register Assembly="DevExpress.Web.v9.1, Version=9.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxTimer" TagPrefix="dxt" %> <%@ Register Assembly="DevExpress.Web.v9.1, Version=9.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxCallback" TagPrefix="dxcb" %> <script type="text/javascript" src="<%=AppRoot %>Scripts/FusionCharts/FusionCharts.js"></script> <div id="divContainer" runat="server" style="height:100%;background-color:transparent;"></div> <dxt:ASPxTimer Interval="5000" runat="server" ID="Timer1" Enabled="false"> </dxt:ASPxTimer> <script type="text/javascript" lang="javascript"> function OnCallbackComplete_<%= this.ID%>(s, e) { if(e.result == '') return; FusionCharts.items["<%=ID %>"].setChartData(e.result,"json"); } </script> <dxcb:ASPxCallback ID="Callback1" runat="server" OnCallback="ASPxCallback1_Callback"> <ClientSideEvents CallbackComplete="OnCallbackComplete" /> </dxcb:ASPxCallback> <script type="text/javascript" lang="javascript"> function InvokeCallback_<%= this.ID%>(first) { <%= this.ID%>_Callback1.PerformCallback(first); } //FusionCharts.setCurrentRenderer('javascript'); var myChart = new FusionCharts("<%=AppRoot %>Scripts/FusionCharts/<%=ChartType.ToString() %>.swf", "<%=ID %>", "<%=Width %>", "<%=Height %>", "<%=DebugModeOn %>", "<%=RegisterWithJS %>"); myChart.setTransparent(true); myChart.configure({ "PBarLoadingText": '<%=GetLocalResourceObject("PBarLoadingText").ToString() %>',//"Loading Chart. Please Wait.", "ChartNoDataText": '<%=GetLocalResourceObject("PBarLoadingText").ToString() %>',//"No data to display." , "InvalidXMLText" : '<%=GetLocalResourceObject("InvalidXMLText").ToString() %>',//"Invalid data.", "XMLLoadingText" : '<%=GetLocalResourceObject("XMLLoadingText").ToString() %>',//"Retrieving Data. Please Wait.", "ParsingDataText" : '<%=GetLocalResourceObject("ParsingDataText").ToString() %>',//"Reading Data. Please Wait.", "RenderingChartText" : '<%=GetLocalResourceObject("RenderingChartText").ToString() %>',//"Rendering Chart. Please Wait.", "LoadDataErrorText" : '<%=GetLocalResourceObject("LoadDataErrorText").ToString() %>'//"Error in loading data." }); myChart.render("<%=divContainer.ClientID %>"); InvokeCallback_<%= this.ID%>(1); </script>
-
How To Checks Whether A Fusioncharts Flash Is Unload
Damon replied to Damon's topic in Javascript Problems
Thanks very much for your quick answer. Could you please give me an demo how to use it. As detailed as possible. Thanks very much. -
Dears, I have gone through the API Reference, but not found any properties or functions that i can use to checks whether a FusionCharts flash is unload. Could any body give me a hand? Thanks very much.
-
Hi, I want to change the "PBarLoadingText" of chart to display my own custom message while the chart is loading. I am following the demo in the demo gallary to do the settings. But it seems like it doesn't work(The settings to "ChartNoDataText" of chart works.) I have no idea about it. Could any one give me some advice. Any advice will be appreciated! Following is my code. <%@ Control Language="C#" AutoEventWireup="true" CodeFile="FusionChart.ascx.cs" Inherits="FusionChart" %> <script type="text/javascript" src="<%=AppRoot %>FusionCharts/FusionCharts.js"></script> <div id="<%=ContainerId %>" style="height:100%;background-color:transparent;"></div> <script type="text/javascript" lang="javascript"> FusionCharts.setCurrentRenderer('javascript'); var myChart = new FusionCharts("<%=AppRoot %>FusionCharts/<%=ChartType.ToString() %>.swf", "<%=ChartId %>", "<%=Width %>", "<%=Height %>", "<%=DebugModeOn %>", "<%=RegisterWithJS %>"); myChart.setJSONData('<%=JsonData %>'); //myChart.setJSONData('<chart></chart>'); myChart.setTransparent(true); myChart.configure({ "PBarLoadingText": '<%=GetLocalResourceObject("PBarLoadingText").ToString() %>',//"zh-cn: 加载数据中...;en-us:Loading Data", "ChartNoDataText": '<%=GetLocalResourceObject("ChartNoDataText").ToString() %>',//"No data to display." , "InvalidXMLText" : '<%=GetLocalResourceObject("InvalidXMLText").ToString() %>',//"Invalid data.", "XMLLoadingText" : '<%=GetLocalResourceObject("XMLLoadingText").ToString() %>',//"Retrieving Data. Please Wait.", "ParsingDataText" : '<%=GetLocalResourceObject("ParsingDataText").ToString() %>',//"Reading Data. Please Wait.", "RenderingChartText" : '<%=GetLocalResourceObject("RenderingChartText").ToString() %>',//"Rendering Chart. Please Wait.", "LoadDataErrorText" : '<%=GetLocalResourceObject("LoadDataErrorText").ToString() %>'//"Error in loading data." }); myChart.render("<%=ContainerId %>"); </script> "
-
Thanks Sumedh, BTW, Does FusionCharts support Chinese. If so ,where can I set the attribute.
-
I have fixed it ... It is a stupid issue. Thanks every body anyway
-
Hi, I want to change my charts width and height according to the brower's size. I was following the demos' step to do settings. But it seems like that it doesn't work. The browser is still going but no chart shows. Following is my sourcecode. Hope for your help. Thanks very much. BTW, I have gonethrough the code and found that the problem is caused by the user control. If the width of container(div) in the user control is set to px widht, there is no such problem. If the width is set using percentage width,the problem is shown. I have no solution about it. Could any one give me a hand. This is urgent. Thanks in advance. 1.UserControl File <%@ Control Language="C#" AutoEventWireup="true" CodeFile="CutomizedChart.ascx.cs" Inherits="CutomizedChart" %> <script type="text/javascript" src="<%=AppRoot %>FusionCharts/FusionCharts.js"></script> <div id="<%=ContainerId %>" style="height: 100%;">FusionCharts will load here!</div> <script type="text/javascript" language="javascript"> <!-- FusionCharts.setCurrentRenderer('javascript'); var myChart = new FusionCharts("FusionCharts/<%=ChartType.ToString() %>.swf","<%=ChartId %>", "<%=Width %>", "<%=Height %>","<%=DebugModeOn %>", "<%=RegisterWithJS %>" ); myChart.setJSONData('<%=JsonData %>'); myChart.render("<%=ContainerId %>"); --> </script> 2.Default.aspx Page which use the user control <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %> <%@ Register Src="~/UserControl/CutomizedChart.ascx" TagPrefix="fc" TagName="CutomizedChart" %> <!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> <title>sub Page</title> </head> <body style="height: 100%;"> <asp:Label runat="server" ID="lbl1"></asp:Label> <fc:CutomizedChart runat="server" ID="chart" /> </body> </html> 3.Default.aspx.cs Code behind protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { if (Request.QueryString["aa"] != null) { string strReuqest = Request.QueryString["aa"].ToString(); lbl1.Text = strReuqest; } chart.ChartId = "3DpieChart1"; chart.ContainerId = "container1"; chart.ChartType = ChartTypeEnum.Column3D; chart.DebugModeOn = 0; chart.Width = "50%"; chart.Height = "50%"; SingleSeriesChartJsonObject data = GenerateSingleSeriesData(); chart.JsonData = JavaScriptConvert.SerializeObject(data); } }
-
I have debugged it. It seems like the problem is caused by the usercontrol. If I set the height and width of the container using "px",there is no such problem. But If I using percentage width, the problem will show. I have no idea about it. It is very urgent. Could any one give me a hand. Thanks very much.
-
Another question, does fusion chart support chinese?
-
Damon started following Percentage Width Doesn't Work
-
Hi, I want to change my charts width and height according to the brower's size. I was following the demos' step to do settings. But it seems like that it doesn't work. The browser is still going but no chart shows. Following is my sourcecode. Hope for your help. Thanks very much. 1.UserControl File <%@ Control Language="C#" AutoEventWireup="true" CodeFile="CutomizedChart.ascx.cs" Inherits="CutomizedChart" %> <script type="text/javascript" src="<%=AppRoot %>FusionCharts/FusionCharts.js"></script> <div id="<%=ContainerId %>" style="height: 100%;">FusionCharts will load here!</div> <script type="text/javascript" language="javascript"> <!-- FusionCharts.setCurrentRenderer('javascript'); var myChart = new FusionCharts("FusionCharts/<%=ChartType.ToString() %>.swf","<%=ChartId %>", "<%=Width %>", "<%=Height %>","<%=DebugModeOn %>", "<%=RegisterWithJS %>" ); myChart.setJSONData('<%=JsonData %>'); myChart.render("<%=ContainerId %>"); --> </script> 2.Default.aspx Page which use the user control <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %> <%@ Register Src="~/UserControl/CutomizedChart.ascx" TagPrefix="fc" TagName="CutomizedChart" %> <!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> <title>sub Page</title> </head> <body style="height: 100%;"> <asp:Label runat="server" ID="lbl1"></asp:Label> <fc:CutomizedChart runat="server" ID="chart" /> </body> </html> 3.Default.aspx.cs Code behind protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { if (Request.QueryString["aa"] != null) { string strReuqest = Request.QueryString["aa"].ToString(); lbl1.Text = strReuqest; } chart.ChartId = "3DpieChart1"; chart.ContainerId = "container1"; chart.ChartType = ChartTypeEnum.Column3D; chart.DebugModeOn = 0; chart.Width = "50%"; chart.Height = "50%"; SingleSeriesChartJsonObject data = GenerateSingleSeriesData(); chart.JsonData = JavaScriptConvert.SerializeObject(data); } } Please refer to the attachment for the browser screenshot
-
Does Fusioncharts Xt Support Realtime Line Charts
Damon replied to Damon's topic in FusionCharts and ASP.NET
Hi, Thank you so much for your quick reply. It is aprreciated. But I can afford only one product. I have found out one way to fix this. I will use FusionChart XT and Ajax to implement the realtime refresh? Is there any demo i can refer to? -
Hi buddies, My company is going to use FusionCharts in our project to do data analyzing. The following kinds of charts are required: column2D, column3D,pie2d,pie3D,Line2D and realtime Line chart. But it seems like that some of these charts(column2D, column3D,pie2d,pie3D,Line2D) are supported in FusionCharts XT(realtime Line chart), and some charts are supported in FusionWidget XT. But we can afford only one product. So does anybody have any good idea? Does FusionCharts XT support realtime line charts OR does FusionWidget XT support column2D, column3D,pie2d,pie3D,Line2D? Thanks so much.