First draft of the bar chart, still contains some bugs