You might be hitting the 500 function call limit that we have in the app, because your for loop is running 200 times, and on each loop it’s calling a bunch of D3 functions.
Save your snippet, then open it on the Grasshopper web playground. At the top of the code, write
disableLimits(). That will remove the limit.
Hope this helps!
Thanks for the help