Resize the chart div and corrects position