fazilcu Posted June 19, 2007 Report Share Posted June 19, 2007 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") 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 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. 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"); 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. 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(); 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.