fazilcu Posted June 19, 2007 Report Share Posted June 19, 2007 Quote Link to comment Share on other sites More sharing options...
Frank Posted June 19, 2007 Report Share Posted June 19, 2007 This will do it: Chart1.SetMessageText("NoData", "My No Data Available Message") Quote Link to comment Share on other sites More sharing options...
serious Posted June 4, 2008 Report Share Posted June 4, 2008 Where should I place this code? I tried to add it into Page_Load, but i doesn't work. ChartFX 7.0.2893.24916 Quote Link to comment Share on other sites More sharing options...
Frank Posted June 4, 2008 Report Share Posted June 4, 2008 Form_Load works for me. I tried both rendering as Image and .NET. Quote Link to comment Share on other sites More sharing options...
serious Posted June 5, 2008 Report Share Posted June 5, 2008 Looks like the problem was in RandomData-Series attribute. Default.aspx <chartfx7:Chart ID="Chart1" runat="server" DataSourceID="ObjectDataSource1" Height="250px" Width="375px"> </chartfx7:Chart> <chartfx7:Chart ID="Chart2" runat="server" DataSourceID="ObjectDataSource1" SelectMethod="GetData" RandomData-Series="1"> </chartfx7:Chart> <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetData" TypeName="Class1"></asp:ObjectDataSource> Default.aspx.cs Chart1.SetMessageText("NoData", "My No Data Available Message");Chart2.SetMessageText("NoData", "My No Data Available Message"); Quote Link to comment Share on other sites More sharing options...
micjohny Posted January 14, 2009 Report Share Posted January 14, 2009 This did not help me since I am not getting the method SetMessageText on my chart. I am using Chart Fx 8 for WPF. Quote Link to comment Share on other sites More sharing options...
AndreG Posted January 14, 2009 Report Share Posted January 14, 2009 Then you are on the wrong thread. This one is about Chart FX 7 Web Forms only. Here is a link to the Chart FX for WPF Discussion Boardhttp://community.softwarefx.com/forums/default.aspx?GroupID=26Now, to answer your question, try the following. chart1.MessageTable["NoData"] = "This is my custom message"; If at any time after setting that you would like to revert to the default message, clear the MessageTable. chart1.MessageTable.Clear(); Quote Link to comment Share on other sites More sharing options...
micjohny Posted January 14, 2009 Report Share Posted January 14, 2009 Thanks a lot. This worked. chart1.MessageTable["NoData"] = "This is my custom message"; Actually I searched the WPF discussion board before posting here. Thanks once again Johny. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.