add 'update' method in chartx.realtime