Jump to content
Software FX Community

Customise "No Data Available" message


fazilcu

Recommended Posts

  • 11 months later...

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

  • 7 months later...

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...