Jump to content
Software FX Community

Dynamically set the series text property?


IDalton

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

Archived

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

×
×
  • Create New...