Usually, when I load a graph, the object in the graph start outside the graph, and are sometimes very slow to first enter the graph area, or, if the graph is crowded or unconnected (ie. lots of force outwards, little inwards), then the nodes don't make it onto the graph at all.

I think this would work much better if all the objects started near, or at the centre. probably at the centre, with some randomised jitter (say up to a hundred pixels in each direction?).

Comments

clemens.tolboom’s picture

Project: Graph API » Graph Phyz
Version: 7.x-1.x-dev »
Component: jquery-graphapi » Code
clemens.tolboom’s picture

Version: » 7.x-1.x-dev
Assigned: Unassigned » clemens.tolboom
Status: Active » Fixed

I've added more options of which initScale covers your request.

Setting this to ie 0.5 place all nodes into the center.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.