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

你可能感兴趣的:(Graph)