List of usage examples for javafx.scene.chart AreaChart AreaChart
public AreaChart(@NamedArg("xAxis") Axis<X> xAxis, @NamedArg("yAxis") Axis<Y> yAxis, @NamedArg("data") ObservableList<Series<X, Y>> data)
From source file:Main.java
@Override public void start(Stage primaryStage) { CategoryAxis xAxis = new CategoryAxis(); NumberAxis yAxis = new NumberAxis(); AreaChart areaChart = new AreaChart(xAxis, yAxis, getChartData()); areaChart.setTitle("speculations"); primaryStage.setTitle("AreaChart example"); StackPane root = new StackPane(); root.getChildren().add(areaChart);//from w ww . jav a2 s. c o m primaryStage.setScene(new Scene(root, 400, 250)); primaryStage.show(); }