update chart on fly