Skip to content
maxkfranz edited this page Dec 16, 2011 · 3 revisions

Random layout

Positions nodes in random positions.

Nodes are positioned on the range between (0, 0) and (w, h) where w and h denote the viewport width and height, respectively.

Coordinate system

2D Cartesian (x and y)

Default options

var defaults = {
  name: "random",
  ready: undefined,
  fit: true
};

Description of options

ready : A callback function that executes when the layout is done.

fit : A boolean indicating whether to adjust the zoom and pan of the graph to fit the graph to the viewport.

Clone this wiki locally