add resize for testchart