resize CT chart on window size event