A quick adaptation of Mike Bostock's force-directed graph showing character co-occurence in Les Misérables. In this version, the character names are displayed. This is accomplished by wrapping both circles and text svg components within a group svg component.
Compare to the original diagram by Mike Bostock.
Please check out my blog on JavaScript and Typescript at https://typeofnan.dev!
Hey HeyBigNick! Great job!
I've checked your code, to remove the trembling you should change this in line 85:
node .selectAll("circle") .attr("cx", d => d.x) .attr("cy",d => d.y); })
This replaces the old position of the node for the new one instead of translating the node "d.x/y" pixels.