added bar chart functionality