Search code examples
c#chartsasp.net-charts

bind two arrays with x and y datapoints to a line chart in asp.net?


Does anyone know how to bind two arrays (x and y datapoints) to form a line chart using the asp.net chart toolkit?


Solution

  • Figured it out. Need to for loop the datapoints and use:

    Chart.Series["ChartName"].Points.AddXY(x[i], y[i])