首页 > 其他 > 详细

zedGraph显示节点值

时间:2016-01-26 12:07:16      阅读:185      评论:0      收藏:0      [点我收藏+]

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++;
//}

zedGraph显示节点值

原文:http://www.cnblogs.com/boke813009577/p/5159550.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!