functionality for pie chart