Dracula is a set of tools to display and layout interactive graphs, along with various related algorithms.
Creating a graph is simple! You also can customize anything easily.
var g = new Graph(); g.addEdge("strawberry", "cherry"); g.addEdge("strawberry", "apple"); g.addEdge("strawberry", "tomato"); g.addEdge("tomato", "apple"); g.addEdge("tomato", "kiwi"); g.addEdge("cherry", "apple"); g.addEdge("cherry", "kiwi"); var layouter = new Graph.Layout.Spring(g); layouter.layout(); var renderer = new Graph.Renderer.Raphael('canvas', g, 400, 300); renderer.draw();
Note: If you are looking for a commercially backed graph drawing software for the browser, take a look at the fantastic library yFiles for HTML! It is the most feature complete graph drawing library available for HTML5 and pleasant to work with.