Hi,
I follow this example:
But, in my case I want to bind to chart 2 string[],not string[] and int[].
I think I should modify this line:
Chart1.Series[0].Points.DataBindXY(x, y);
How can I do this?
string[] x = new string[dt.Rows.Count];
string[] y = new string[dt.Rows.Count];
for (int i = 0; i < dt.Rows.Count; i++)
{
x[i] = dt.Rows[i][0].ToString();
y[i] = dt.Rows[i][1].ToString();
}