implement the real time chart