WebChartControl.BindToData(ViewType, Object, String, String, String[]) Method
Binds a chart to data.
Namespace: DevExpress.XtraCharts.Web
Assembly: DevExpress.XtraCharts.v24.1.Web.dll
NuGet Package: DevExpress.Web.Visualization
Declaration
public void BindToData(
ViewType viewType,
object dataSource,
string seriesDataMember,
string argumentDataMember,
params string[] valueDataMembers
)
Parameters
Name | Type | Description |
---|---|---|
viewType | ViewType | A ViewType enumeration value specifying the view type of series to be generated. |
dataSource | Object | A Object that is the datasource for a chart. This value is assigned to the ASPxDataWebControlBase.DataSource property of a WebChartControl object. |
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 WebChartControl.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 WebChartControl.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 WebChartControl.SeriesTemplate object. |