changed pie chart to bar chart