updated bar chart drawing