putting it together with a bar chart example.