彩票走势图

彩票走势图 > 慧问 > 频道

xtrachart数据源显示不正常,怎么解决?

发表于2019-05-10 回复:0 查看:2467  |  
如图,数据源在2:50分钟前是0,2:50分钟后数据正常显示。 <pre class='brush: csharp'> private Series CreateSeries(string caption, ViewType viewType, DataTable dt, int rowIndex,string sjz) { Series series = new Series(caption, viewType); //DevExpress.XtraCharts.PointSeriesLabel pointSeriesLabel = new PointSeriesLabel(); //pointSeriesLabel.Visible = false; LineSeriesView lineSeriesView2=new LineSeriesView(); lineSeriesView2.LineMarkerOptions.BorderVisible = false; lineSeriesView2.LineMarkerOptions.Size = 3; lineSeriesView2.LineStyle.Thickness = 1; series.Label.Visible = false; series.View = lineSeriesView2; for (int i = 0; i < dt.Rows.Count; i++) { DateTime argument =Convert.ToDateTime(dt.Rows[i]["DateTime"].ToString());//参数名称 double value = Convert.ToDouble(dt.Rows[i][sjz].ToString());//参数值 series.Points.Add(new SeriesPoint(argument.ToString("HH:mm"), value)); } series.ArgumentScaleType = ScaleType.Qualitative; return series; }</pre>
0个回答

打破零回复...

回复

登录 慧都网发表评论

扫码咨询


添加微信 立即咨询

电话咨询

客服热线
023-68661681

TOP