Skip to main content
A newer version of this page is available. .

ChartControl.BindToData(SeriesViewBase, Object, String, String, String[]) Method

Binds a chart to data.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v18.2.UI.dll

Declaration

public void BindToData(
    SeriesViewBase view,
    object dataSource,
    string seriesDataMember,
    string argumentDataMember,
    params string[] valueDataMembers
)

Parameters

Name Type Description
view SeriesViewBase

A SeriesViewBase class descendant that contains initial settings for series that will be generated when binding a chart to data.

dataSource Object

A Object that is the datasource for a chart. This value is assigned to the ChartControl.DataSource property.

seriesDataMember String

A String that is the name of the data field whose values are used to automatically generate and populate series. This value is assigned to the ChartControl.SeriesDataMember property.

argumentDataMember String

A String that is the name of the data field that contains arguments for series points. This value is assigned to the SeriesBase.ArgumentDataMember property of a ChartControl.SeriesTemplate object.

valueDataMembers String[]

An array of String values that are the names of data fields that contain information on data values of series points. These values are assigned to the SeriesBase.ValueDataMembers property of a ChartControl.SeriesTemplate object.

See Also