Ejemplo n.º 1
0
        public override List <FrameworkElement> chartViews(
            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);
        }
Ejemplo n.º 2
0
        public override List <FrameworkElement> chartViews(
            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);
        }