July 2017
Beginner to intermediate
715 pages
17h 3m
English
Scatter charts also use the XYChart.Series class in JavaFX. For this example, we will use a set of European data that includes the previous Europeans countries and their population data for the decades 1500 through 2000. This information is stored in a file called EuropeanScatterData.csv. The first part of this file is shown here:
1500 14000001600 16000001650 15000001700 20000001750 22500001800 32500001820 34340001830 37500001840 4080000...
We start with the declaration of the JavaFX MainApp class, as shown next. The main method launches the application and the start method creates the user interface:
public class MainApp extends Application { @Override public void start(Stage stage) throws Exception { ...