Re:Show HN: Six Degrees of Wikipedia
by nathanken on Monday February 26, 2018 @09:42PM
(#16470728)
Really cool. I'm interested to know how the graph is build. Did you use any third party components.
[ Parent
| on HN ]
Thank you! The graph is built using vanilla d3, no library on top of it. The code for it lives all in one file, ResultsGraph.js [1]. I pieced together the code from a handful of other attempts online. I am still not 100% pleased with the performance of it with a larger number of nodes (250+), but that seems to be a common complaint with the d3 force simulation layouts.
[1] https://github.com/jwngr/sdow/blob/master/website/src/compon...