日期:2014-05-18 浏览次数:20500 次
int[] xValue = new int[dt.Rows.Count];
int[] yValue = new int[dt.Rows.Count];
int i = 0 ;
foreach(DataRow dr in dt.Rows)
{
xValue[i] = Convert.ToInt32(dr["x"].ToString());
yValue[i] = Convert.ToInt32(dr["y"].ToString());
i++;
}
line1 = new Steema.TeeChart.Styles.Line();
line1.Add(xValue,yValue);
WebChart1.Chart.Series.Add(line1);