private DataSeries GetTestSerise(Model.TestInfoModel model, List <double> dataList) { DataSeries ds = null; if (oddTestDataSeriseDict.Keys.Contains(model.TestID)) { return(oddTestDataSeriseDict[model.TestID]); } this.Dispatcher.Invoke(new Action(() => { ds = new DataSeries(); if (!oddTestDataSeriseDict.Keys.Contains(model.TestID)) { DataSeriseUtil.InitLineDataSerise(ds, true, model.Index + model.Ath_Name, null); //ds.LineThickness = 3; DataSeriseUtil.AddDataToDataSerise(ds, dataList); } else { ds = oddTestDataSeriseDict[model.TestID]; } })); return(ds); }
private void AddAvgSeries(Chart c, List <double> list, bool showInLengend, string lengendText, Brush brush) { DataSeries ds = new DataSeries(); DataSeriseUtil.InitDataSerise(ds, true, lengendText, brush, RenderAs.Area); DataSeriseUtil.AddDataToDataSerise(ds, list); c.Series.Add(ds); }
private DataSeries GetAvgSDSeries(List <double> list, bool showInLengend, string lengendText, Brush brush, RenderAs render) { DataSeries ds = null; Dispatcher.Invoke(new Action(() => { ds = new DataSeries(); DataSeriseUtil.InitDataSerise(ds, true, lengendText, brush, render); DataSeriseUtil.AddDataToDataSerise(ds, list); })); return(ds); }
private void AddSeriseToChart(Chart c, Model.TestInfoModel model, List <double> dataList) { if (!oddTestDataSeriseDict.Keys.Contains(model.TestID)) { DataSeries ds = new DataSeries(); DataSeriseUtil.InitLineDataSerise(ds, true, model.Index + model.Ath_Name, null); DataSeriseUtil.AddDataToDataSerise(ds, dataList); c.Series.Add(ds); } else { c.Series.Add(oddTestDataSeriseDict[model.TestID]); } }