update chart size