Improve resizeCharts code by using this.xx instead of Display.xx