4

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?

2
  • standard library question: do you care about licensing? Commented Aug 13, 2014 at 17:41
  • i want to display it to users, license must allow that
    – aksdj
    Commented Aug 13, 2014 at 18:20

2 Answers 2

4

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.

0

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 and acknowledge you have read our privacy policy.

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