Example usage for javafx.scene.chart CategoryAxis setEndMargin

List of usage examples for javafx.scene.chart CategoryAxis setEndMargin

Introduction

In this page you can find the example usage for javafx.scene.chart CategoryAxis setEndMargin.

Prototype

public final void setEndMargin(double value) 

Source Link

Usage

From source file:Main.java

@Override
public void start(final Stage stage) {
    stage.setWidth(500);/*w  ww.j a  v a2s .c o  m*/
    stage.setHeight(500);
    Scene scene = new Scene(new Group());

    VBox root = new VBox();
    CategoryAxis lineXAxis = new CategoryAxis(getData());

    lineXAxis.setEndMargin(0.9);

    root.getChildren().addAll(lineXAxis);
    scene.setRoot(root);

    stage.setScene(scene);
    stage.show();
}