/// <summary> /// 画图表 /// </summary> /// <param name="entity">实体对象</param> /// <param name="RealData">实时值</param> public void DrawChart(ChartEntity entity, string RealData) { Chart1.Titles.Add(entity.title); if (RealData != "") Chart1.Titles.Add("实时值:" + RealData); AddSeries(ref Chart1, entity.Series.Count); for (int i = 0; i < entity.Series.Count; i++) { DrawChart(Chart1.Series[i], entity.Series[i]); } }
/// <summary> /// 画图表 /// </summary> /// <param name="entity">实体对象</param> /// <param name="RealData">实时值</param> public void DrawChart(ChartEntity entity, string RealData) { Chart1.Titles.Add(entity.title); if (RealData != "") { Chart1.Titles.Add("实时值:" + RealData); } AddSeries(ref Chart1, entity.Series.Count); for (int i = 0; i < entity.Series.Count; i++) { DrawChart(Chart1.Series[i], entity.Series[i]); } }