The X and Y values of a data series can be bound to data sources using the DataBindXY and DataBindY methods.

In this sample:

  1. The CSV data source is queried
  2. The resulting data is loaded into a data reader
  3. The data reader is then passed into the DataBind(X)Y method call.