update chart based on the real time data