• <menu id="w2i4a"></menu>
  • 首頁(yè) > 慧問(wèn) > 頻道

    xtrachart數(shù)據(jù)源顯示不正常,怎么解決?

    發(fā)表于2019-05-10 回復(fù):0 查看:2385  |  
    如圖,數(shù)據(jù)源在2:50分鐘前是0,2:50分鐘后數(shù)據(jù)正常顯示。 <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());//參數(shù)名稱 double value = Convert.ToDouble(dt.Rows[i][sjz].ToString());//參數(shù)值 series.Points.Add(new SeriesPoint(argument.ToString("HH:mm"), value)); } series.ArgumentScaleType = ScaleType.Qualitative; return series; }</pre>
    0個(gè)回答

    打破零回復(fù)...

    回復(fù)

    登錄 慧都網(wǎng)發(fā)表評(píng)論

    掃碼咨詢


    添加微信 立即咨詢

    電話咨詢

    客服熱線
    023-68661681

    TOP
    三级成人熟女影院,欧美午夜成人精品视频,亚洲国产成人乱色在线观看,色中色成人论坛 (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })();