added bar chart mode