Example usage for javafx.scene.chart CategoryAxis toRealValue

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

Introduction

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

Prototype

@Override
public String toRealValue(double value) 

Source Link

Document

All axis values must be representable by some numeric value.

Usage

From source file:Main.java

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

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

    System.out.println(lineXAxis.toRealValue(1.2));

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

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