update chart layout