Beispiel #1
0
        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;

            // Subscribing to a paint eventhandler to drawingPanel:
            PlotPanel.Paint += PlotPanelPaint;

            cs = new ChartStyle(this);
            ds = new DataSeries();
            lg = new Legend(this);
            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;

            // Subscribing to a paint eventhandler to drawingPanel:
            PlotPanel.Paint += PlotPanelPaint;

            cs = new ChartStyle (this);
            ds = new DataSeries ();
            lg = new Legend (this);
            lg.IsLegendVisible = true;
        }