Пример #1
0
        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);
        }
Пример #2
0
        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);
        }