Fix bar chart example code