Exemple #1
0
        /// <summary>
        /// Returns an initialized and renderer specific rendererInfo.
        /// </summary>
        internal override RendererInfo Init()
        {
            ChartRendererInfo cri = new ChartRendererInfo();

            cri.chart = (Chart)this.rendererParms.DrawingItem;
            this.rendererParms.RendererInfo = cri;

            InitSeriesRendererInfo();

            LegendRenderer lr = GetLegendRenderer();

            cri.legendRendererInfo = (LegendRendererInfo)lr.Init();

            AxisRenderer xar = new VerticalXAxisRenderer(this.rendererParms);

            cri.xAxisRendererInfo = (AxisRendererInfo)xar.Init();

            AxisRenderer yar = GetYAxisRenderer();

            cri.yAxisRendererInfo = (AxisRendererInfo)yar.Init();

            PlotArea         plotArea = cri.chart.PlotArea;
            PlotAreaRenderer renderer = GetPlotAreaRenderer();

            cri.plotAreaRendererInfo = (PlotAreaRendererInfo)renderer.Init();

            DataLabelRenderer dlr = new BarDataLabelRenderer(this.rendererParms);

            dlr.Init();

            return(cri);
        }
Exemple #2
0
        /// <summary>
        /// Returns an initialized and renderer specific rendererInfo.
        /// </summary>
        internal override RendererInfo Init()
        {
            ChartRendererInfo cri = new ChartRendererInfo();

            cri.chart = (Chart)this.rendererParms.DrawingItem;
            this.rendererParms.RendererInfo = cri;

            InitSeries(cri);

            LegendRenderer lr = new PieLegendRenderer(this.rendererParms);

            cri.legendRendererInfo = (LegendRendererInfo)lr.Init();

            PlotArea         plotArea = cri.chart.PlotArea;
            PlotAreaRenderer renderer = GetPlotAreaRenderer();

            cri.plotAreaRendererInfo = (PlotAreaRendererInfo)renderer.Init();

            DataLabelRenderer dlr = new PieDataLabelRenderer(this.rendererParms);

            dlr.Init();

            return(cri);
        }