- First, create GridPane and configure it to place the charts that we will be creating:
GridPane gridPane = new GridPane();
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 ...
Get Java 11 Cookbook now with O’Reilly online learning.
O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.