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";

原文地址:https://www.cnblogs.com/jetz/p/1675026.html