Reusable bar chart working