update the bar chart to resize on ratio change