This was my initial attempt using an Illustration
https://codepen.io/anon/pen/NVORrZ
This is my 2nd attempt using the docs you linked https://codepen.io/anon/pen/QRZKxy?editors=0010
What do you think - is updateGraph + render supposed to work more than once?