I need to render Graphviz DOT graphs in a browser. I also need some interactive functionality such 开发者_如何学Cas allowing node names to be hyperlinks.
I have tried using Canviz (Javascript renderer), but it doesn't handle large graphs very well. Many of my links also do not work on large graphs.
graphviz can also render .svg files which can be displayed by webbrowsers and can contain links etc
It's not cheap but mxGraph should do what you need.
Otherwise take a look at this question for some other suggestions.
Do you generate the graphs on the server, or are you looking for a client-side solution? If the graphs are generated server-side, graphviz is able to generate html imagemaps. See the example here http://www.graphviz.org/doc/info/output.html#d:imap.
We build this site with a combination of svg (exported from GraphViz) and javascript+svg for the interaction. The highlighting doesn't work in IE, but interaction still does, using imagemaps also generated from GraphViz. I don't know of any off-the-shelf solution.
Maybe give Cytoscape Web a try. Its parent project, Cytoscape, was built to visualize biological networks, but both generalize to any type of network. Cytoscape Web is a separate project that uses Flash as its engine, but is manipulable client-side through Javascript.
Hermann Stamm-Wilbrandt implemented a fiddler on top of mdaines's compiled-to-javascript GraphViz implementation.
精彩评论