Example usage for javafx.scene.chart CategoryAxis setGapStartAndEnd

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

Introduction

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

Prototype

public final void setGapStartAndEnd(boolean value) 

Source Link

Usage

From source file:Main.java

@Override
public void start(final Stage stage) {
    stage.setWidth(500);//from w  w w .j ava  2s.com
    stage.setHeight(500);
    Scene scene = new Scene(new Group());

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

    lineXAxis.setGapStartAndEnd(true);

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

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