ZedGraph折线图上如何显示具体数据呢?
例如我的x轴为时间,y轴为成绩,在折线上如何显示出具体的数据,而且还能加上连接更好,就是点一下那个数据,能够连接到一个页面上。请大侠帮帮忙。下面是我找的源代码: double xx, yy;
PointPairList list = new PointPairList();
for (int i = 0; i < 10; i++)
{
string[] kk = x[i].Split('-');
xx = (double)new XDate(Convert.ToInt32(kk[0]), Convert.ToInt32(kk[1]), Convert.ToInt32(kk[2])+11);
yy =Convert.ToDouble(y[i]);
list.Add(xx,yy);
}
CurveItem myCurve = myPane.AddCurve("My Curve",list, Color.Red, SymbolType.Diamond);
myPane.XAxis.MajorTic.IsBetweenLabels = true;
myPane.XAxis.Scale.TextLabels = x;
myPane.XAxis.Type = AxisType.Text;
//myPane.XAxis.Type = AxisType.Date;
myPane.Fill = new Fill(Color.White, Color.FromArgb(200, 200, 255), 45.0f);
myPane.Chart.Fill = new Fill(Color.White, Color.LightGoldenrodYellow, 45.0f);
pane.AxisChange(g);