3 ms·
How is it different from D3's force layout + DOM manipulation? Looks very, very similar to me.
by polskibus 12y ago
How is it different from D3's force layout + DOM manipulation? Looks very, very similar to me.
- verroq 12y agoIt's an inferior subset of D3, however HN will upvote anything with JS in the title.
- zo1 12y agoLike I just upvoted your comment? Because it had JS in the body... Just kidding, I agree completely with you. It's currently very "in vogue" to promote anything remotely related to JS or Node. I always say, right tool for the job, and if that happens to be JS/Node, great. However, sometimes it feels like these JS pushers have JS as their proverbial hammer, and every single problem they encounter is a nail to be hammered (with JS).
- jschulenklopper 12y agoIndeed. See http://bl.ocks.org/mbostock/4062045 http://bl.ocks.org/mbostock/4062045 for Mike Bostock's example of a simple force-directed graph including the D3.js code. (BTW, see http://bl.ocks.org/mbostock http://bl.ocks.org/mbostock for an impressive collection of visualizations made with D3.js. Impressive both in terms of size of the collection, quality of the code and clarity of the visualizations.)
- akx 12y agoWell, it (slightly) predates D3, for what it's worth: https://github.com/dhotson/springy/commits/master?page=4 https://github.com/dhotson/springy/commits/master?page=4 https://github.com/mbostock/d3/commits/master?page=91 https://github.com/mbostock/d3/commits/master?page=91 If all you need is spring layout without the rest of D3, Springy might be a better fit.