Package org.openfaces.component.chart.impl.plots

Examples of org.openfaces.component.chart.impl.plots.PiePlotAdapter


    protected Plot createPlot(Chart chart, ChartModel model, ModelInfo info) {
        final PieChartView chartView = (PieChartView) chart.getChartView();

        if (info.isDataEmpty()) {
            return new PiePlotAdapter(null, chart, chartView);
        }

        if (info.getNonEmptySeriesList().length < 2) {
            PieDataset ds = ModelConverter.toPieDataset(model);
            final Plot adapter = (chartView.isEnable3D())
                    ? new PiePlot3DAdapter(ds, chart, chartView)
                    : new PiePlotAdapter(ds, chart, chartView);

            return adapter;
        }

        CategoryDataset ds = ModelConverter.toCategoryDataset(info);
View Full Code Here

TOP

Related Classes of org.openfaces.component.chart.impl.plots.PiePlotAdapter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.