- First, create GridPane and configure it to place the charts that we will be creating:
GridPane gridPane = new GridPane(); gridPane.setAlignment(Pos.CENTER); gridPane.setHgap(10); gridPane.setVgap(10); gridPane.setPadding(new Insets(25, 25, 25, 25));
- Use the StudentDataProcessor class from the student.processor module to parse the student file and load the data into List of Student:
StudentDataProcessor sdp = new StudentDataProcessor(); List<Student> students = sdp.loadStudent();
- The raw data, that is, the list of Student objects is not useful for plotting a chart, so we need to process the students' grades by grouping the students according to their mothers' and fathers' education and computing the average of those ...