List of usage examples for javafx.scene.chart CategoryAxis setStartMargin
public final void setStartMargin(double value)
From source file:Main.java
@Override public void start(final Stage stage) { stage.setWidth(500);/*ww w.ja v a 2s .co m*/ stage.setHeight(500); Scene scene = new Scene(new Group()); VBox root = new VBox(); CategoryAxis lineXAxis = new CategoryAxis(getData()); lineXAxis.setStartMargin(1.2); root.getChildren().addAll(lineXAxis); scene.setRoot(root); stage.setScene(scene); stage.show(); }