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.XLimMin = 0f; cs.XLimMax = 10f; cs.YLimMin = 0f; cs.YLimMax = 10f; cs.XTick = 2.0f; cs.YTick = 2.0f; cs.XLabel = "This is X axis"; cs.YLabel = "This is Y axis"; cs.Title = "Area Plot"; cs.IsXGrid = true; cs.IsYGrid = 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.XLimMin = 0f; cs.XLimMax = 10f; cs.YLimMin = 0f; cs.YLimMax = 10f; cs.XTick = 2f; cs.YTick = 2f; cs.XLabel = "This is X axis"; cs.YLabel = "This is Y axis"; cs.Title = "Area Plot"; cs.IsXGrid = true; cs.IsYGrid = true; }