Search in sources :

Example 1 with StackedBarChartProperties

use of org.krysalis.jcharts.properties.StackedBarChartProperties in project activityinfo by bedatadriven.

the class ChartRendererJC method computeAxisChartProperties.

protected AxisChartTypeProperties computeAxisChartProperties(int dpi, PivotChartReportElement element) {
    if (element.getType() == PivotChartReportElement.Type.Line) {
        return computeLineChartProperties(element, dpi);
    } else {
        BarChartProperties p;
        switch(element.getType()) {
            case StackedBar:
                p = new StackedBarChartProperties();
                break;
            case Bar:
            case ClusteredBar:
                p = new ClusteredBarChartProperties();
                break;
            default:
                throw new IllegalArgumentException(element.getType().toString());
        }
        p.setShowOutlinesFlag(false);
        return p;
    }
}
Also used : ClusteredBarChartProperties(org.krysalis.jcharts.properties.ClusteredBarChartProperties) ClusteredBarChartProperties(org.krysalis.jcharts.properties.ClusteredBarChartProperties) BarChartProperties(org.krysalis.jcharts.properties.BarChartProperties) StackedBarChartProperties(org.krysalis.jcharts.properties.StackedBarChartProperties) StackedBarChartProperties(org.krysalis.jcharts.properties.StackedBarChartProperties)

Aggregations

BarChartProperties (org.krysalis.jcharts.properties.BarChartProperties)1 ClusteredBarChartProperties (org.krysalis.jcharts.properties.ClusteredBarChartProperties)1 StackedBarChartProperties (org.krysalis.jcharts.properties.StackedBarChartProperties)1