corelibraries-devexpress-dot-xtracharts-dot-seriesbase-dot-setdatamembers-x28-system-dot-string-system-dot-string-x29.md
Specifies the data members whose values the series uses to populate series points’ arguments and values.
Namespace : DevExpress.XtraCharts
Assembly : DevExpress.XtraCharts.v25.2.dll
NuGet Package : DevExpress.Charts
public void SetDataMembers(
string argumentDataMember,
string valueDataMember
)
Public Sub SetDataMembers(
argumentDataMember As String,
valueDataMember As String
)
| Name | Type | Description |
|---|---|---|
| argumentDataMember | String |
The name of the data member whose values will be used as the argument of the series points.
| | valueDataMember | String |
The name of the data member whose values will be used as the value of the series points.
|
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the SetDataMembers(String, String) method.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
winforms-charts-create-stacked-bar-chart/CS/Series_StackedBarChart/Form1.cs#L22
chart.SeriesTemplate.SeriesDataMember = "Company";
chart.SeriesTemplate.SetDataMembers("Product", "Income");
winforms-charts-create-stacked-bar-chart/VB/Series_StackedBarChart/Form1.vb#L24
chart.SeriesTemplate.SeriesDataMember = "Company"
chart.SeriesTemplate.SetDataMembers("Product", "Income")
' Enable series point labels, specify their text pattern and position:
See Also