AddLegend() public method

public AddLegend ( Graphics g, DataCollection dc, ChartStyle cs ) : void
g System.Drawing.Graphics
dc DataCollection
cs ChartStyle
return void
Ejemplo n.º 1
0
        public override void DrawRect(System.Drawing.RectangleF dirtyRect)
        {
            var g = new Graphics();

            g.Clear(backColor);

            cs.ChartArea = this.ClientRectangle;
            AddData(g);
            SetPlotArea(g);
            cs.AddChartStyle(g);
            dc.AddLines(g, cs);
            lg.AddLegend(g, dc, cs);
            g.Dispose();
        }
Ejemplo n.º 2
0
        public override void DrawRect(CGRect dirtyRect)
        {
            var g = Graphics.FromCurrentContext();

            g.Clear(backColor);

            cs.ChartArea = this.ClientRectangle;
            AddData(g);
            SetPlotArea(g);
            cs.AddChartStyle(g);
            dc.AddLines(g, cs);
            lg.AddLegend(g, dc, cs);
            g.Dispose();
        }