pie chart functionality added to BarChart class