update chart demo