Creating a bar chart with error bars