bar chart example fixed as per new version