Skip to content

Instantly share code, notes, and snippets.

@sekjal
Created July 19, 2013 15:42
Show Gist options
  • Save sekjal/6040132 to your computer and use it in GitHub Desktop.
Save sekjal/6040132 to your computer and use it in GitHub Desktop.
The purpose of this script is to provide an easy way to create a force directed graph in D3.js without having to know ahead of time the index of the nodes in the Nodes array. Instead of providing a list of Links with the array index of source and target, each node should have a unique name (ID), and each link should reference that. Links to unsu…
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment