Beispiel #1
0
        public override List <FrameworkElement> chartViewsAsync(
            IEnumerable <DGObject> objs, double width, double height)
        {
            List <FrameworkElement> charts = new List <FrameworkElement>();

            // point curve
            List <MonPoint> allPoints = new List <MonPoint>();

            foreach (var obj in objs)
            {
                MonGroup group = obj as MonGroup;
                if (group == null)
                {
                    continue;
                }
                allPoints.AddRange(group.monPntDict.Values);
            }
            FrameworkElement chart =
                FormsCharting.getMonPointChart(allPoints, width, height);

            if (chart != null)
            {
                charts.Add(chart);
            }

            // group curve
            chart = FormsCharting.getMonGroupChart(objs, width, height);
            if (chart != null)
            {
                charts.Add(chart);
            }

            return(charts);
        }
Beispiel #2
0
        public override List <FrameworkElement> chartViewsAsync(
            IEnumerable <DGObject> objs, double width, double height)
        {
            List <FrameworkElement> charts = new List <FrameworkElement>();
            FrameworkElement        chart  =
                FormsCharting.getMonPointChart(objs, width, height);

            charts.Add(chart);
            return(charts);
        }