List of usage examples for javafx.scene.chart PieChart dataProperty
public final ObjectProperty<ObservableList<Data>> dataProperty()
From source file:Main.java
@Override public void start(Stage primaryStage) { PieChart pieChart = new PieChart(); pieChart.setData(getChartData());/*from ww w.j a v a 2 s . c o m*/ System.out.println(pieChart.dataProperty()); pieChart.setTitle("Title"); pieChart.setLegendSide(Side.LEFT); pieChart.setClockwise(false); pieChart.setLabelsVisible(false); StackPane root = new StackPane(); root.getChildren().add(pieChart); primaryStage.setScene(new Scene(root, 300, 250)); primaryStage.show(); }