new PieChart.Data("Germany", 81_882_342),
new PieChart.Data("France", 62_793_432),
new PieChart.Data("Spain", 46_661_950 ),
new PieChart.Data("Italy", 60_245_846)
);
PieChart chart = new PieChart(pieChartData);
chart.setStyle("-fx-pie-label-visible: false");
for( PieChart.Data d : pieChartData ) {
d.getNode().setOnMouseEntered(new MouseHoverAnimation(d,chart));
d.getNode().setOnMouseExited(new MouseExitAnimation());
}
chart.setClockwise(false);
p.setCenter(chart);
Scene s = new Scene(p);
primaryStage.setScene(s);
primaryStage.setWidth(600);