Uniformed the Pie chart API with the one of the other graphs