real-time updating graph works