update chart factory