Pie chart functionality re-commit