Pie chart working correctly.