ZeGraph中X轴显示时间

double x = (double)new XDate(Convert.ToInt32(sDate.Substring(0, 4)), Convert.ToInt32(sDate.Substring(5, 2)), Convert.ToInt32(sDate.Substring(8, 2)));

 

 

//x轴设置为日期格式
myPane.XAxis.Type = AxisType.Date;
myPane.XAxis.Scale.Format = "M-d";

posted @ 2010-02-28 09:19  jetz  阅读(278)  评论(0编辑  收藏  举报