@Override public void start(Stage stage) throws Exception { PieChart pie = new PieChart(); pie.setData(getChart()); StackPane pane = new StackPane(); Scene scene = new Scene(pane); stage.setScene(scene); pane.getChildren().addAll(pie); stage.show(); } private ObservableList<PieChart.Data> getChart() { ObservableList<PieChart.Data> list = FXCollections.observableArrayList(); list.addAll(new PieChart.Data("java",20), new PieChart.Data("c",20), new PieChart.Data("C++",20)); return list; } i want this chart to be displayed on scene builder. how is it possible..??
