Force-directed layouts

28 views
Skip to first unread message

Kaspar Fischer

unread,
Dec 3, 2009, 7:29:53 PM12/3/09
to javascript-information...@googlegroups.com
Dear all,

First of all thanks a lot for providing such a useful and elegant  
library to the public! I would like to contribute where I can.

I have read on

http://blog.thejit.org/2009/09/30/force-directed-layouts/

about the upcoming 1.2 release featuring force-directed layouts. I am wondering what the state of this feature is currently? Is the code in the source code repository?

I would like to draw small network graphs incrementally, in the sense  
that double-clicking a node loads, if this has not already happened  
before, its children and adds them to the graph, with the layout  
adjusting itself again until it reaches a local minimum.

Thanks for any pointers,
Kaspar

Bart

unread,
Dec 4, 2009, 9:39:07 AM12/4/09
to JavaScript Information Visualization Toolkit
You could use the sum feature in Graph.op of the existing library to
dynamically add nodes:

http://thejit.org/docs/files/Graph-Op-js.html

Bart

Kaspar Fischer

unread,
Dec 4, 2009, 8:28:29 PM12/4/09
to javascript-information...@googlegroups.com, JavaScript Information Visualization Toolkit
I don't understand what will happen then with the layout of the graph?
IIUC the libray has — for general graphs — only the radial layout.
So will this sum operation recompute the radial layout?

Kaspar
> --
>
> You received this message because you are subscribed to the Google
> Groups "JavaScript Information Visualization Toolkit" group.
> To post to this group, send email to javascript-information...@googlegroups.com
> .
> To unsubscribe from this group, send email to javascript-information-visua...@googlegroups.com
> .
> For more options, visit this group at http://groups.google.com/group/javascript-information-visualization-toolkit?hl=en
> .
>
>

Bart

unread,
Dec 7, 2009, 12:44:55 PM12/7/09
to JavaScript Information Visualization Toolkit
You can see the effect of sum (and removing a node) dynamically at the
example: http://thejit.org/Jit/Examples/Hypertree/example3.html

I think it recomputes the entire graph because each node gets a new
position value.

Bart

On Dec 4, 8:28 pm, Kaspar Fischer <kaspar.fisc...@dreizak.com> wrote:
> I don't understand what will happen then with the layout of the graph?  
> IIUC the libray has — for general graphs — only the radial layout.  
> So will this sum operation recompute the radial layout?
>
> Kaspar
>
> > For more options, visit this group athttp://groups.google.com/group/javascript-information-visualization-t...
> > .
Reply all
Reply to author
Forward
0 new messages