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

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...