d3.js - combining force and pack layouts in d3 -



d3.js - combining force and pack layouts in d3 -

i have graph represented standard forcefulness layout.

nodes can clustered attributes.

can represent these clusters pack layout?

how 2 layouts coexist , how x , y coordinates of nodes calculated?

edit i'm thinking might have process info turn node clusters individual nodes containing cluster hierarchy attribute. still welcome alternative way doesn't forcefulness me reshape info if possible.

here illustration dataset transformed fit multi layout approach. issue here cannot link of nodes inside cluster.

{ "directed": true, "graph": [], "nodes": [ { "id": "node0" }, { "id": "node1" }, { "id": "node2", "tree": { "name": "cluster", "children": [ { "id": "node3" }, { "id": "node4" }, { "id": "node5" } ] } } ], "links": [ { "source": 0, "target": 1 }, { "source": 1, "target": 2 }, { "source": 0, "target": 2 } ], "multigraph": false }

layout d3.js force-layout circle-pack

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -