Back to Devexpress

SeriesBase.SetDataMembers(String, String) Method

corelibraries-devexpress-dot-xtracharts-dot-seriesbase-dot-setdatamembers-x28-system-dot-string-system-dot-string-x29.md

latest2.8 KB
Original Source

SeriesBase.SetDataMembers(String, String) Method

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

Declaration

csharp
public void SetDataMembers(
    string argumentDataMember,
    string valueDataMember
)
vb
Public Sub SetDataMembers(
    argumentDataMember As String,
    valueDataMember As String
)

Parameters

NameTypeDescription
argumentDataMemberString

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

csharp
chart.SeriesTemplate.SeriesDataMember = "Company";
chart.SeriesTemplate.SetDataMembers("Product", "Income");

winforms-charts-create-stacked-bar-chart/VB/Series_StackedBarChart/Form1.vb#L24

vb
chart.SeriesTemplate.SeriesDataMember = "Company"
chart.SeriesTemplate.SetDataMembers("Product", "Income")
' Enable series point labels, specify their text pattern and position:

See Also

SeriesBase Class

SeriesBase Members

DevExpress.XtraCharts Namespace