/// <summary> /// Returns an initialized and renderer specific rendererInfo. /// </summary> internal override RendererInfo Init() { ChartRendererInfo cri = new ChartRendererInfo { _chart = (Chart)_rendererParms.DrawingItem }; _rendererParms.RendererInfo = cri; InitSeries(cri); LegendRenderer lr = new PieLegendRenderer(_rendererParms); cri.legendRendererInfo = (LegendRendererInfo)lr.Init(); PlotArea plotArea = cri._chart.PlotArea; PlotAreaRenderer renderer = GetPlotAreaRenderer(); cri.plotAreaRendererInfo = (PlotAreaRendererInfo)renderer.Init(); DataLabelRenderer dlr = new PieDataLabelRenderer(_rendererParms); dlr.Init(); return(cri); }
/// <summary> /// Returns an initialized and renderer specific rendererInfo. /// </summary> internal override RendererInfo Init() { ChartRendererInfo cri = new ChartRendererInfo { _chart = (Chart)_rendererParms.DrawingItem }; _rendererParms.RendererInfo = cri; InitSeriesRendererInfo(); LegendRenderer lr = new ColumnLikeLegendRenderer(_rendererParms); cri.legendRendererInfo = (LegendRendererInfo)lr.Init(); AxisRenderer xar = new HorizontalXAxisRenderer(_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 ColumnDataLabelRenderer(_rendererParms); dlr.Init(); return(cri); }