updated bar chart example with scale