public static JFreeChart createBarChart3D(String title, String categoryAxisLabel, String valueAxisLabel, CategoryDataset dataset, PlotOrientation orientation, boolean legend, boolean tooltips, boolean urls) { JFreeChart chart = ChartFactory.createBarChart3D(title, categoryAxisLabel, valueAxisLabel, dataset, orientation, legend, tooltips, urls); setBarChartDefaults(chart); return chart; }
public JFreeChart makeChart() { JFreeChart chart; chart = ChartFactory.createBarChart3D("", "", "", new DefaultCategoryDataset(), PlotOrientation.VERTICAL, false, false, false); ValueAxis rangeAxis = chart.getCategoryPlot().getRangeAxis(); if (rangeAxis instanceof NumberAxis) { ((NumberAxis) rangeAxis).setNumberFormatOverride(new DecimalFormat("######.###")); } return chart; } }
protected JFreeChart createChart(ChartDefinition chartDefinition, CategoryDataset dataset, PlotOrientation plotOrientation) { return ChartFactory.createBarChart3D( chartDefinition.getName(), chartDefinition.getXAxisName(), chartDefinition.getYAxisName(), dataset, plotOrientation, true, true, true); }
/** * It creates a chart for the given dataset and adds the chart to the panel. * * @param dataset The dataset that will provide the values for the chart. */ private void addChart() { JFreeChart chart = ChartFactory.createBarChart3D(getTitle(), null, "Time" + unitSuffix(), dataset, PlotOrientation.VERTICAL, true, true, false); chart.addProgressListener(locker); CategoryPlot plot = (CategoryPlot) chart.getPlot(); CategoryItemRenderer renderer = plot.getRenderer(); renderer.setToolTipGenerator(dataset); mainPanel().add(BorderLayout.CENTER, new ChartPanel(chart)); }
final JFreeChart barChart = ChartFactory.createBarChart3D(" ", "Build Number", null,
/** * renders a BarChart consisting of one series for each specified foiID. * * @param foiIdArray * @param observationCollection * @return */ protected CategoryPlot renderFoiBarChart(String foiID, String timeString, ObservedValueTuple tuple) { DefaultCategoryDataset dataset = new DefaultCategoryDataset(); dataset.addValue((Double) tuple.getValue(0), foiID, timeString); JFreeChart chart = ChartFactory.createBarChart3D(null, // String title null, // String categoryAxisLabel null, // String valueAxisLabel dataset, // CategoryDataset dataset PlotOrientation.VERTICAL, false, // boolean legend false, // boolean tooltips false // boolean urls ); CategoryPlot plot = chart.getCategoryPlot(); plot.setBackgroundPaint(Color.white); return plot; }
public JFreeChart createChart(Chart chart) { ChartModel model = (ChartModel) chart.getModel(); if (!(model instanceof CategoryModel)) { throw new UiException("model must be a org.zkoss.zul.CategoryModel"); } return ChartFactory.createBarChart3D( chart.getTitle(), chart.getXAxis(), chart.getYAxis(), CategoryModelToCategoryDataset((CategoryModel)model), getOrientation(chart.getOrient()), chart.isShowLegend(), chart.isShowTooltiptext(), true); } }
JFreeChart barChart = null; if ("3d".equalsIgnoreCase(chartConfig.getVariation().orElse(null))) { barChart = ChartFactory.createBarChart3D(chartConfig.getTitle().getValue(), chartConfig.getDomainAxisLabel(), chartConfig.getRangeAxisLabel(),
JFreeChart barChart = null; if ("3d".equalsIgnoreCase(chartConfig.getVariation().orElse(null))) { barChart = ChartFactory.createBarChart3D(chartConfig.getTitle().getValue(), chartConfig.getDomainAxisLabel(), chartConfig.getRangeAxisLabel(),
JFreeChart chart = null; if(render3d) chart = ChartFactory.createBarChart3D(null, null, null, dataset, PlotOrientation.VERTICAL, true, false, false); else chart = ChartFactory.createBarChart(null, null, null, dataset, PlotOrientation.VERTICAL, true, false, false);
@Override public JFreeChart createChart(FacesContext context) { JFreeChart chart; if (!getIs3D()) { chart = ChartFactory.createBarChart(getTitle(), getDomainAxisLabel(), getRangeAxisLabel(), (CategoryDataset) dataset, plotOrientation(getOrientation()), getLegend(), false, false); } else { chart = ChartFactory.createBarChart3D(getTitle(), getDomainAxisLabel(), getRangeAxisLabel(), (CategoryDataset) dataset, plotOrientation(getOrientation()), getLegend(), false, false); } configureTitle(chart.getTitle()); configureLegend(chart.getLegend()); return chart; } }
ChartFactory.createBarChart3D( (String)evaluateExpression(getChart().getTitleExpression()), (String)evaluateExpression(((JRBar3DPlot)getPlot()).getCategoryAxisLabelExpression()),
getYaxis(), dataset, PlotOrientation.VERTICAL, hasLegend(), true, false); case BAR_3D: return ChartFactory.createBarChart3D(getURLTitle(), null, getYaxis(), dataset, PlotOrientation.VERTICAL, hasLegend(), true, false); case LINE_3D: