zedGraph显示节点值

zedGraphControl1.AxisChange();
//GraphPane myPane = zedGraphControl1.GraphPane;
//int ord = 0;
//foreach (CurveItem mycurve in myPane.CurveList)
//{
// LineItem line = zedGraphControl1.GraphPane.CurveList[0] as LineItem;
// if (line != null)
// {
// IPointList points = mycurve.Points;
// for (int i = 0; i < points.Count; i++)
// {
// double xVal = points[i].X;
// double yVal = points[i].Y;
// string lab = yVal.ToString("0.00");
// TextObj text = new TextObj(lab, (float)xVal, (float)yVal * 1.01);
// text.Location.CoordinateFrame = CoordType.AxisXYScale;
// text.FontSpec.Size = 10;
// text.Location.AlignH = AlignH.Center;
// text.Location.AlignV = AlignV.Bottom;
// text.FontSpec.Border.IsVisible = false;
// text.FontSpec.Angle = 0;
// text.FontSpec.Fill.IsVisible = false;
// myPane.GraphObjList.Add(text);
// }
// }
// ord++;
//}

posted on 2016-01-26 10:42  boke_wang  阅读(771)  评论(0编辑  收藏  举报

导航