Snippet - How to create a bar-chart