Refer
http://www.dotnetfox.com/articles/bind-Asp-Net-chart-control-from-database-using-C-Sharp-1056.aspx[
^]
http://blogs.msdn.com/b/alexgor/archive/2009/02/21/data-binding-ms-chart-control.aspx[
^]
Shows how to bind the X and Y access according to the Data.
Hope this helps
Adding a sample code snippet as per the comment
string[] x = new string[dt.Columns.Count];
string[] y = new string[dt.Columns.Count];
for (int i = 0; i < dt.Columns.Count; i++)
{
if (i == 0)
{
x = Array.ConvertAll( dt.Rows[i].ItemArray,item=>item.ToString());
}
else if (i==1)
{
y = Array.ConvertAll(dt.Rows[i].ItemArray, item => item.ToString());
}
}
Note:
Null checks for the items not done, you should take care of those
Now using this try to bind the X and Y axis