Showing the code for the “stream” example with some interactivity. For this example we defined the helper function streamWin.contents. The D3 example script is the body of the function. The property contains of the window object, which can get a Node or a function, executes the call.