//populating the series with data iceCreamSeries.getData().add(new XYChart.Data("Jan", 1)); iceCreamSeries.getData().add(new XYChart.Data("Feb", 4)); iceCreamSeries.getData().add(new XYChart.Data("Mar", 10)); iceCreamSeries.getData().add(new XYChart.Data("Apr", 11)); iceCreamSeries.getData().add(new XYChart.Data("May", 20)); iceCreamSeries.getData().add(new XYChart.Data("Jun", 200)); iceCreamSeries.getData().add(new XYChart.Data("Jul", 200)); iceCreamSeries.getData().add(new XYChart.Data("Aug", 50)); iceCreamSeries.getData().add(new XYChart.Data("Sep", 43)); iceCreamSeries.getData().add(new XYChart.Data("Oct", 3)); iceCreamSeries.getData().add(new XYChart.Data("Nov", 2)); iceCreamSeries.getData().add(new XYChart.Data("Dec", 1)); XYChart.Series temperatureSeries = new XYChart.Series(); temperatureSeries.setName("Temperature "); temperatureSeries.getData().add(new XYChart.Data("Jan", -10)); temperatureSeries.getData().add(new XYChart.Data("Feb", -2)); temperatureSeries.getData().add(new XYChart.Data("Mar", 2)); temperatureSeries.getData().add(new XYChart.Data("Apr", 4)); temperatureSeries.getData().add(new XYChart.Data("May", 12)); temperatureSeries.getData().add(new XYChart.Data("Jun", 16)); temperatureSeries.getData().add(new XYChart.Data("Jul", 22)); temperatureSeries.getData().add(new XYChart.Data("Aug", 17)); temperatureSeries.getData().add(new XYChart.Data("Sep", 14)); temperatureSeries.getData().add(new XYChart.Data("Oct", 8)); temperatureSeries.getData().add(new XYChart.Data("Nov", 2)); temperatureSeries.getData().add(new XYChart.Data("Dec", -2)); lineChart.getData().addAll(iceCreamSeries, temperatureSeries); 188