views:

206

answers:

5

Hi,

I have to integrate a graph with nodes and edges on a web page. Ideally, i would like to be able to interact with it (like moving the nodes around).

Actually, i'm beginning by representing trees, so i would appreciate to be able to collapse subtrees.

How can I do that ? I was considering google-visualization api but i wasn't able to find the kind of visualization i'm looking for (org chart doesn't allow to have multiple fathers, if i understood well)

I've got no idea of the kind of technology so my tagging may not be really accurate :-).

thanks

A: 

I'd go for SVG (all 'newer' browsers implement it more or less; older via plugins: e.g. IE6).

If you want to make it interactive javascript manipulation should be doable.

ChristopheD
+1  A: 

http://processingjs.org/ might have what you're looking for.

Mark
+2  A: 

RaphaelJS may be of interest to you. Particularly this example.

Alex Reynolds
that's really nice. :-). Do you know if you can represent many nodes (~2000) ?
LB
No idea. But you might think about whether you can fit 2000 nodes into a display window. Maybe it makes more sense to hide, rescale or otherwise only show nodes of interest, on demand.
Alex Reynolds
you're right, that's why i wanted to collapse part of the graph...
LB
+2  A: 

Two other options are:

Binary Nerd
thanks, i'm going to check the javascript toolkit. the demos look really impressive
LB
I personally think JIT looks like a great library. Whilst i'm not if sure you can drag nodes, the layouts and animated transitions look great. I also like the fact that you can load data on demand. Hope it helps.
Binary Nerd
thejit is really what i was looking for, that's pretty easy, and rendering many nodes is not that slow.
LB
+1  A: 

There is an up to date blog post about this topic, explaining flash vs. canvas/js

Karussell