/** * Default constructor which sets the title and y label * * @param region */ GraphPopulation(EnumRegion region) { this.region = region; this.title = "Population for " + region.toString(); lineChart.setTitle(title); yAxis.setLabel("Population (thousands of people)"); }