List of usage examples for org.jfree.chart.axis SymbolAxis setUpperMargin
public void setUpperMargin(double margin)
From source file:org.jfree.chart.demo.SymbolAxisDemo1.java
private static JFreeChart createChart(XYDataset xydataset) { SymbolAxis symbolaxis = new SymbolAxis("Domain", new String[] { "A", "B", "C", "D" }); SymbolAxis symbolaxis1 = new SymbolAxis("Range", new String[] { "V", "X", "Y", "Z" }); symbolaxis1.setUpperMargin(0.0D); XYLineAndShapeRenderer xylineandshaperenderer = new XYLineAndShapeRenderer(false, true); XYPlot xyplot = new XYPlot(xydataset, symbolaxis, symbolaxis1, xylineandshaperenderer); JFreeChart jfreechart = new JFreeChart("SymbolicAxis Demo 1", xyplot); return jfreechart; }