teeChart控件问题请教,谢谢
[color=#FF0000][/color]最近刚刚上手teeChart控件,请教一些问题;
1、如何把数据库中的字符串类型的字段值赋给X轴;
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);