I initially made use of your solution but encountered two problems:
- The resulting graph does not update itself, you have to refresh the page.
- Each update is an API call, so for users on free tier this will run out at some point. (unclear if stream writes count as API hits, but I think they donβt. If someone knows for sure please reply!)
Have a look at my post here where I essentially ask and answer my own question, thus solving the problems above.
Hope this helps!