At present PieChart data is not treated as XYChart data. This is very inconvenient when creating chart data generically -- you have to have two cases. But PieChart data is essentially XYChart data (just two data points after all), it is just displayed in a different kind of way. Can i suggest making PieChart data just a sub-class of XYChart data.