如果想显示ss.fff,即秒和毫秒的格式,至少需要设置一下几个属性
series1.XValueType = ChartValueType.DateTime;
series1.IsXValueIndexed = true;
chartArea1.AxisX.LabelStyle.Format = “ss.fff”; //“yyyy -MM-dd HH:mm:ss.fff”;
chartArea1.AxisX.LabelStyle.IntervalType = DateTimeIntervalType.Seconds;
chartArea1.AxisX.MajorGrid.IntervalType = DateTimeIntervalType.Seconds;