0

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

locoboy
  • 38,002
  • 70
  • 184
  • 260

2 Answers2

1

You can bind the arrays with:

my_series.Points.DataBindXY(x, y)
Cerveser
  • 752
  • 8
  • 23
0

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

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

locoboy
  • 38,002
  • 70
  • 184
  • 260
  • Hi , I'm having a similar issue - would you still have your sample code that i could have a look? thank you – K-M Nov 25 '11 at 14:09