1 13 package org.pentaho.plugin.jfreereport.reportcharts; 14 15 import org.jfree.chart.ChartFactory; 16 import org.jfree.chart.JFreeChart; 17 import org.jfree.chart.plot.PlotOrientation; 18 import org.jfree.data.category.CategoryDataset; 19 import org.pentaho.core.session.IPentahoSession; 20 21 public class WaterfallChartExpressions extends CategoricalChartExpression { 22 23 private static final long serialVersionUID = 8342198616002055989L; 24 25 public WaterfallChartExpressions() { 26 super(); 27 } 28 29 public WaterfallChartExpressions(IPentahoSession session) { 30 super(session); 31 } 33 34 public JFreeChart getChart(CategoryDataset categoryDataset) { 35 return ChartFactory.createWaterfallChart(getTitle(), getCategoryAxisLabel(), getValueAxisLabel(), categoryDataset, isHorizontal() ? PlotOrientation.HORIZONTAL : PlotOrientation.VERTICAL, isShowLegend(), false, false); 36 } 37 38 } 39 | Popular Tags |