Fixing the bar chart resizing issue