The JavaFX charts API is based on the idea of a “Visual Model” so each PieChart.Data represents a single slice of the pie so if you would like to add an action to one of the pie slices this can be done like this:

Thanks for sharing this great information. I’ve been searching the internet for posts on how to build dashboards that present charts showing application activities. I have considered using JavaFX to accomplish the task and am pleased to see now learn that there is a chart api. I will definitely be consider using this to build the dashboards