private g Paint_Points()
        {
            g g1 = new g();



            if (_parent.Points_List_Private.Count > 0)
            {
                List <MyPoint> Points_for_Polygon = new List <MyPoint>();

                MyPoint p  = new MyPoint(0, MyFunctions.Calculate_Y_Coordinate(_parent, _parent.Points_List_Private.Where(x => x.IsShown).First().Percentage));
                MyPoint p2 = new MyPoint(0, 0);

                Points_for_Polygon.Add(new MyPoint(0, _parent.ChartSettings.InitialHeight));
                Points_for_Polygon.Add(new MyPoint(p.X, p.Y));

                int counter = 0;
                foreach (MyChartPoint item in _parent.Points_List_Private.Where(x => x.IsShown))
                {
                    p2 = new MyPoint(counter * _parent.ChartSettings.StackWidth, MyFunctions.Calculate_Y_Coordinate(_parent, item.Percentage));
                    Points_for_Polygon.Add(p2);

                    counter++;
                }



                Points_for_Polygon.Add(new MyPoint(p2.X, _parent.ChartSettings.InitialHeight));


                StringBuilder sb = new StringBuilder();

                foreach (var item in Points_for_Polygon)
                {
                    sb.Append(item.X);
                    sb.Append(",");
                    sb.Append(item.Y);
                    sb.Append(" ");
                }


                polygon pl = new polygon
                {
                    points = sb.ToString().Trim(),
                    style  = "fill:" + _parent.ChartSettings.AreaColor,
                };

                g1.Children.Add(pl);
            }


            return(g1);
        }
        private g Paint_Points()
        {
            g g1 = new g();

            if (_parent.Points_List_Private.Count > 0)
            {
                MyPoint p  = new MyPoint(0, MyFunctions.Calculate_Y_Coordinate(_parent, _parent.Points_List_Private.Where(x => x.IsShown).First().Percentage));
                MyPoint p2 = new MyPoint(0, 0);


                int counter = 0;
                foreach (MyChartPoint item in _parent.Points_List_Private.Where(x => x.IsShown))
                {
                    p2 = new MyPoint(counter * _parent.ChartSettings.StackWidth, MyFunctions.Calculate_Y_Coordinate(_parent, item.Percentage));


                    line l = new line
                    {
                        x1           = p.X,
                        y1           = p.Y,
                        x2           = p2.X,
                        y2           = p2.Y,
                        stroke       = _parent.ChartSettings.LineColor,
                        stroke_width = _parent.ChartSettings.LineWidth,
                    };
                    g1.Children.Add(l);

                    p.X = p2.X;
                    p.Y = p2.Y;

                    counter++;
                }
            }


            return(g1);
        }
        private g Paint_Points()
        {
            g g1 = new g();



            if (_parent.Points_List_Private.Count > 0)
            {
                int counter = 0;
                foreach (MyChartPoint item in _parent.Points_List_Private.Where(x => x.IsShown))
                {
                    g1.Children.Add(Add_Visual_Point(new MyPoint(counter * _parent.ChartSettings.StackWidth, MyFunctions.Calculate_Y_Coordinate(_parent, item.Percentage)), item.IsProcessRunning));
                    counter++;
                }
            }

            return(g1);
        }