List of usage examples for org.jfree.chart.axis NumberAxis3D setUpperMargin
public void setUpperMargin(double margin)
From source file:org.sonar.plugins.abacus.chart.BarChart3D.java
private void configureRangeAxis(CategoryPlot plot, String valueLabelSuffix, Font font) { NumberAxis3D numberAxis = new NumberAxis3D(); numberAxis.setUpperMargin(0.3); numberAxis.setTickLabelFont(font);/*from w w w . j a va 2 s . c om*/ numberAxis.setTickLabelPaint(OUTLINE_COLOR); String suffix = ""; if (valueLabelSuffix != null && !"".equals(valueLabelSuffix)) { suffix = new StringBuilder().append("'").append(valueLabelSuffix).append("'").toString(); } numberAxis.setNumberFormatOverride(new DecimalFormat("0" + suffix)); numberAxis.setStandardTickUnits(NumberAxis.createIntegerTickUnits()); plot.setRangeAxis(numberAxis); }