Beispiel #1
0
        /// <summary>
        /// Draws the column chart.
        /// </summary>
        internal override void Draw()
        {
            ChartRendererInfo cri = (ChartRendererInfo)this.rendererParms.RendererInfo;

            LegendRenderer lr = GetLegendRenderer();

            lr.Draw();

            WallRenderer wr = new WallRenderer(this.rendererParms);

            wr.Draw();

            GridlinesRenderer glr = new BarGridlinesRenderer(this.rendererParms);

            glr.Draw();

            PlotAreaBorderRenderer pabr = new PlotAreaBorderRenderer(this.rendererParms);

            pabr.Draw();

            PlotAreaRenderer renderer = GetPlotAreaRenderer();

            renderer.Draw();

            DataLabelRenderer dlr = new BarDataLabelRenderer(this.rendererParms);

            dlr.Draw();

            if (cri.xAxisRendererInfo.axis != null)
            {
                AxisRenderer xar = new VerticalXAxisRenderer(this.rendererParms);
                xar.Draw();
            }

            if (cri.yAxisRendererInfo.axis != null)
            {
                AxisRenderer yar = GetYAxisRenderer();
                yar.Draw();
            }
        }
Beispiel #2
0
        /// <summary>
        /// Draws the line chart.
        /// </summary>
        internal override void Draw()
        {
            ChartRendererInfo cri = (ChartRendererInfo)this.rendererParms.RendererInfo;

            LegendRenderer lr = new ColumnLikeLegendRenderer(this.rendererParms);

            lr.Draw();

            // Draw wall.
            WallRenderer wr = new WallRenderer(this.rendererParms);

            wr.Draw();

            // Draw gridlines.
            GridlinesRenderer glr = new ColumnLikeGridlinesRenderer(this.rendererParms);

            glr.Draw();

            PlotAreaBorderRenderer pabr = new PlotAreaBorderRenderer(this.rendererParms);

            pabr.Draw();

            // Draw line chart's plot area.
            LinePlotAreaRenderer lpar = new LinePlotAreaRenderer(this.rendererParms);

            lpar.Draw();

            // Draw x- and y-axis.
            if (cri.xAxisRendererInfo.axis != null)
            {
                AxisRenderer xar = new HorizontalXAxisRenderer(this.rendererParms);
                xar.Draw();
            }

            if (cri.yAxisRendererInfo.axis != null)
            {
                AxisRenderer yar = new VerticalYAxisRenderer(this.rendererParms);
                yar.Draw();
            }
        }
Beispiel #3
0
        /// <summary>
        /// Draws the pie chart.
        /// </summary>
        internal override void Draw()
        {
            LegendRenderer lr = new PieLegendRenderer(this.rendererParms);

            lr.Draw();

            WallRenderer wr = new WallRenderer(this.rendererParms);

            wr.Draw();

            PlotAreaBorderRenderer pabr = new PlotAreaBorderRenderer(this.rendererParms);

            pabr.Draw();

            PlotAreaRenderer renderer = GetPlotAreaRenderer();

            renderer.Draw();

            DataLabelRenderer dlr = new PieDataLabelRenderer(this.rendererParms);

            dlr.Draw();
        }
Beispiel #4
0
        /// <summary>
        /// Draws the column chart.
        /// </summary>
        internal override void Draw()
        {
            CombinationRendererInfo cri = (CombinationRendererInfo)this.rendererParms.RendererInfo;

            cri.seriesRendererInfos = cri.commonSeriesRendererInfos;

            LegendRenderer lr = new ColumnLikeLegendRenderer(this.rendererParms);

            lr.Draw();

            WallRenderer wr = new WallRenderer(this.rendererParms);

            wr.Draw();

            GridlinesRenderer glr = new ColumnLikeGridlinesRenderer(this.rendererParms);

            glr.Draw();

            PlotAreaBorderRenderer pabr = new PlotAreaBorderRenderer(this.rendererParms);

            pabr.Draw();

            PlotAreaRenderer renderer;

            if (cri.areaSeriesRendererInfos != null)
            {
                cri.seriesRendererInfos = cri.areaSeriesRendererInfos;
                renderer = new AreaPlotAreaRenderer(this.rendererParms);
                renderer.Draw();
            }
            if (cri.columnSeriesRendererInfos != null)
            {
                cri.seriesRendererInfos = cri.columnSeriesRendererInfos;
                //TODO Check for Clustered- or StackedPlotAreaRenderer
                renderer = new ColumnClusteredPlotAreaRenderer(this.rendererParms);
                renderer.Draw();
            }
            if (cri.lineSeriesRendererInfos != null)
            {
                cri.seriesRendererInfos = cri.lineSeriesRendererInfos;
                renderer = new LinePlotAreaRenderer(this.rendererParms);
                renderer.Draw();
            }

            // Draw data labels.
            if (cri.columnSeriesRendererInfos != null)
            {
                cri.seriesRendererInfos = cri.columnSeriesRendererInfos;
                DataLabelRenderer dlr = new ColumnDataLabelRenderer(this.rendererParms);
                dlr.Draw();
            }

            // Draw axes.
            cri.seriesRendererInfos = cri.commonSeriesRendererInfos;
            if (cri.xAxisRendererInfo.axis != null)
            {
                AxisRenderer xar = new HorizontalXAxisRenderer(this.rendererParms);
                xar.Draw();
            }
            if (cri.yAxisRendererInfo.axis != null)
            {
                AxisRenderer yar = new VerticalYAxisRenderer(this.rendererParms);
                yar.Draw();
            }
        }