Jump to content
Software FX Community

Dynamically set the series text property?


IDalton
 Share

Recommended Posts

I am plotting a lines graph and I could have multiple series of data coming in and I am loading the data via sql server and attaching a data table to the chart and setting the XValue & Value via the DataSourceSettings.  All the examples I see are setting the series manually using the text property. Is there a way to dynamically set the text, so that I don't have to try and figure out what series belongs to what set of data?

post-2815-13922398250346_thumb.jpg

Link to comment
Share on other sites

I'm afraid I don't follow you.

If you are using databinding, the series text is taken from the dataset columns (DisplayName property).

You can use the DataSourceSettings.Style property to prevent this. Then you can set the series text in your code by doing:

series.Text = text;

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.

 Share

×
×
  • Create New...