I want an interactive network graph for my web page. I've set up a db containing edges and nodes. I have JS functions getNode(id) and getEdge(id), which properly returns edges and nodes with their properties. I want this displayed graphically, but don't want to reinvent the wheel. I want to just pass the edge and node info, don't care much for style. Essentials: (directed) edges and nodes with labels, plus click events I can write my own methods for. Is there such a JS library?

  • standard library question: do you care about licensing? – Nick Dickinson-Wilde Aug 13 '14 at 17:41
  • i want to display it to users, license must allow that – aksdj Aug 13 '14 at 18:20

You can use the JavaScript library D3.js (BSD license), it contains some nice function to present the data as an interactive network:

enter image description here

enter image description here

enter image description here

More examples.


You can also use Linkurious.js, a Javascript toolkit to speed up the development of graph visualization and interaction applications. It is free for open source projects.

Disclaimer: I work at Linkurious SAS.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.