Create dynamic bar chart