public ChartCanvas(RectangleF rect) : base(rect) { ContentMode = UIViewContentMode.Redraw; this.AutoresizingMask = UIViewAutoresizing.All; this.BackColor = Color.Wheat; PlotPanel = new PlotPanel(rect); this.AddSubview(PlotPanel); // Subscribing to a paint eventhandler to drawingPanel: PlotPanel.Paint += new PaintEventHandler(PlotPanelPaint); dc = new DataCollection(); cs = new ChartStyle(this); cs.RMax = 1f; cs.RMin = -5f; cs.NTicks = 4; cs.AngleStep = 30; cs.AngleDirection = ChartStyle.AngleDirectionEnum.CounterClockWise; lg = new Legend(); lg.IsLegendVisible = true; }
public ChartCanvas(CGRect rect) : base(rect) { ContentMode = UIViewContentMode.Redraw; AutoresizingMask = UIViewAutoresizing.All; BackColor = Color.Wheat; PlotPanel = new PlotPanel(rect); AddSubview(PlotPanel); // Subscribing to a paint eventhandler to drawingPanel: PlotPanel.Paint += PlotPanelPaint; dc = new DataCollection(); cs = new ChartStyle(this); cs.RMax = 1f; cs.RMin = -5f; cs.NTicks = 4; cs.AngleStep = 30; cs.AngleDirection = ChartStyle.AngleDirectionEnum.CounterClockWise; lg = new Legend(); lg.IsLegendVisible = true; }