日期:2014-05-20 浏览次数:21187 次
Series series = new Series(); series.Name = obj.连接位置; series.Legend = obj.PositionID.ToString(); series.IsValueShownAsLabel = true; series.ChartType = SeriesChartType.Line; series.BorderWidth = 5; series.Color = System.Drawing.Color.DarkOrange; series.XValueType = ChartValueType.Time; series.ToolTip = "时间:#VALX 值#VALY"; series.Points.AddXY(DateTime.Parse(item.time.ToString("H:mm:ss")).ToOADate(), ConvertToDoubleFromString(obj.传输数据)); chart.Series.Add(series);