public ChartCanvas(CGRect rect)
            : base(rect)
        {
            ContentMode = UIViewContentMode.Redraw;
            AutoresizingMask = UIViewAutoresizing.All;
            BackColor = Color.Wheat;

            var panelRect = new CGRect (rect.X,rect.Y,rect.Width,rect.Height- 20/UIScreen.MainScreen.Scale);
            panelRect.Inflate (-20/UIScreen.MainScreen.Scale,-20/UIScreen.MainScreen.Scale);
            panel1 = new PlotPanel (panelRect);
            panel1.BackColor = Color.AliceBlue;

            AddSubview (panel1);

            // Subscribing to a paint eventhandler to drawingPanel:
            panel1.Paint += PlotPanelPaint;
        }
        public ChartCanvas(CGRect rect) : base(rect)
        {
            ContentMode      = UIViewContentMode.Redraw;
            AutoresizingMask = UIViewAutoresizing.All;
            BackColor        = Color.Wheat;

            var panelRect = new CGRect(rect.X, rect.Y, rect.Width, rect.Height - 20 / UIScreen.MainScreen.Scale);

            panelRect.Inflate(-20 / UIScreen.MainScreen.Scale, -20 / UIScreen.MainScreen.Scale);
            panel1           = new PlotPanel(panelRect);
            panel1.BackColor = Color.AliceBlue;

            AddSubview(panel1);

            // Subscribing to a paint eventhandler to drawingPanel:
            panel1.Paint += PlotPanelPaint;
        }
        public ChartCanvas(RectangleF rect) : base(rect)
        {
            ContentMode           = UIViewContentMode.Redraw;
            this.AutoresizingMask = UIViewAutoresizing.All;
            this.BackColor        = Color.Wheat;

            var panelRect = new RectangleF(rect.X, rect.Y, rect.Width, rect.Height - 100);

            panelRect.Inflate(-100, -100);
            panel1           = new PlotPanel(panelRect);
            panel1.BackColor = Color.AliceBlue;

            this.AddSubview(panel1);

            // Subscribing to a paint eventhandler to drawingPanel:
            panel1.Paint +=
                new PaintEventHandler(PlotPanelPaint);
        }
        public ChartCanvas(RectangleF rect)
            : base(rect)
        {
            ContentMode = UIViewContentMode.Redraw;
            this.AutoresizingMask = UIViewAutoresizing.All;
            this.BackColor = Color.Wheat;

            var panelRect = new RectangleF(rect.X,rect.Y,rect.Width,rect.Height-100);
            panelRect.Inflate(-100,-100);
            panel1 = new PlotPanel(panelRect);
            panel1.BackColor = Color.AliceBlue;

            this.AddSubview(panel1);

            // Subscribing to a paint eventhandler to drawingPanel:
            panel1.Paint +=
                new PaintEventHandler(PlotPanelPaint);
        }