Force directed graph with fixed node and circular images, responsive
Last active
August 27, 2016 22:17
-
-
Save coderextreme/04f5caaa67e040f00241 to your computer and use it in GitHub Desktop.
Force directed graph with circular images, responsive
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"nodes":[ | |
{"name":"bear", "url":"bear.png", "group":1, "fixed":true, "x":10, "y":10}, | |
{"name":"cow", "url":"cow.png", "group":2, "fixed":false}, | |
{"name":"giraffe", "url":"giraffe.png", "group":3, "fixed":false}, | |
{"name":"goat", "url":"goat.png", "group":4, "fixed":false}, | |
{"name":"hedgehog", "url":"hedgehog.png", "group":5, "fixed":false}, | |
{"name":"llama", "url":"llama.png", "group":6, "fixed":false}, | |
{"name":"monkey", "url":"monkey.png", "group":7, "fixed":false}, | |
{"name":"tiger", "url":"tiger.png", "group":8, "fixed":false} | |
], | |
"links":[ | |
{"source":1,"target":0,"value":1}, | |
{"source":2,"target":0,"value":8}, | |
{"source":3,"target":1,"value":10}, | |
{"source":3,"target":2,"value":6}, | |
{"source":4,"target":0,"value":1}, | |
{"source":5,"target":4,"value":1}, | |
{"source":6,"target":2,"value":1}, | |
{"source":7,"target":1,"value":1} | |
] | |
} |
View raw
(Sorry about that, but we can’t show files that are this big right now.)
View raw
(Sorry about that, but we can’t show files that are this big right now.)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment