Example usage for javafx.scene.chart CategoryAxis getCategories

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

Introduction

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

Prototype

public final ObservableList<String> getCategories() 

Source Link

Document

Returns a ObservableList of categories plotted on this axis.

Usage

From source file:Main.java

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

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

    ObservableList<String> list = lineXAxis.getCategories();

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

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