block by nitaku 7733be2b2e595cd17189

Cola.js layout

Full Screen

A simple exercise with cola.js. A node-link diagram is displayed, based on positions computed by cola’s fast-converging constraints-based layout algorithm. Handling of more than one connected component, node dragging and non-overlapping constraints are also shown.

Compare with a similar example using native d3.js force-directed layout.

index.js

index.html

index.coffee

index.css