Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Optimized graph drawing for the web

Having seen some suggestions for graphs, I wonder what's the optimum for my problem.

I want to render a directed graph to a servlet/picture that is displayed in the browser. There should be some kind of optimization of position. No dependency to Swing would be preferred. Algorithms are not important, since the structure of the graph is determined by business logic. It would be desired to be able add labels to edges as well. it would be optimal if i can serve this as png/svg.

Which library/service would you recommend?

clarifications:

1) The question is all about Graphs - like Directed Acyclic Graph - NOT - Charts.

2) flot, Google Charts - cannot plot graphs, only charts, or have i missed something?

3) no i do not need interactivity

4) graphviz would be nice, but the grappa java library is quite outdated and is built upon swing/awt. while it may be theoretically possible to render swing to images, it would not be my favorite way to to so in a server-app.

5) it would be fine to use an online service where the images are not hosted locally.

edit: added links to Wikipedia to clarify graph/chart term

like image 558
Andreas Petersson Avatar asked Feb 18 '09 17:02

Andreas Petersson


2 Answers

Take a look at graphviz

like image 140
Stephen Doyle Avatar answered Sep 29 '22 23:09

Stephen Doyle


yFiles might be useful for this.

like image 41
RexE Avatar answered Sep 29 '22 21:09

RexE