Removed terrible code from the bar chart