Hi ABC, maybe I can help you. :-)
If you already have the positions of your nodes (like x and y), you
can use the
ForceDirected.Plot.NodeTypes.implement method, and force the final
position of your nodes, like this:
ForceDirected.Plot.NodeTypes.implement({
'your_node_type': {
'render': function(node, canvas) {
//Do the render job of your node, and then set the
final position of your node...
node.endPos.setc(fx, fy);
},
//optional
'contains': function(node, pos) {
var npos = node.pos.getc(true),
dim = node.getData('dim');
return this.nodeHelper.square.contains(npos, pos,
dim);
}
}
}
I do not review the code above, and I don't know for sure if help you,
but I think that gives you an idea.
Hope it helps.
Regards.
On 19 jan, 04:36, abc <
sanoop.deva...@gmail.com> wrote:
> Hi Nicolás,
>
> Could you help me in rendering Force Directed graph in a aligned
> manner like a Tree or Inverted Tree.
> I have seen the discussion forum
>
>
http://groups.google.com/group/javascript-information-visualization-t...