[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.Chart.DataPointsCollection.DataBindXY

DataBindXY Method

DataBindXY(object, string, object, string)

Binds the X and Y values of the collection's DataPoints to the specified column(s) of the specified data source.

Declaration
public void DataBindXY(object xDataSource, string xField, object yDataSource, string yFields)
Parameters
Type Name Description
object xDataSource

Specifies the data source object that provides the X value(s).

string xField

Specify the name of the column supplying the X value of DataPoints as a string.

object yDataSource

Specifies the data source object that provides the Y value(s).

string yFields

Specify a comma-separated column names to supply Y values for DataPoints.

DataBindXY(IEnumerable, params IEnumerable[])

Binds the X value and Y values of the collection's DataPoints to the first column(s) of the specified data source(s).

Declaration
public void DataBindXY(IEnumerable xValueEnumerable, params IEnumerable[] yEnumerableValues)
Parameters
Type Name Description
IEnumerable xValueEnumerable

Specifies the data source that will supply the X values for the DataPoints. The first available column will be used.

IEnumerable[] yEnumerableValues

Specifies the Y value(s) of the DataPoint object added to the collection (one or more comma-separated values).

DataBindXY(object[], params double[][])

Binds the X value and Y values of the collection's DataPoints to a specified data source.

Declaration
public void DataBindXY(object[] xValues, params double[][] yValues)
Parameters
Type Name Description
object[] xValues

Specifies the array of X values of the DataPoint object added to the collection.

double[][] yValues

Specifies the array of Y values of the doubles added to the collection.