Alternatively, if you just need to refresh the canvas when new data arrives, you can use the noLoop() / redraw() technique: