Layouts

Force layout

  layout: "force",

Hierarchical layout

(Please see here to learn more about each parameter)

  layout: "hierarchical",
  layoutSettings: {
    enabled: true,
    levelSeparation: 150,
    nodeSpacing: 100,
    treeSpacing: 200,
    blockShifting: true,
    edgeMinimization: true,
    parentCentralization: true,
    direction: "UD",
    sortMethod: "hubsize",
    shakeTowards: "leaves"
  },

Map layout

Custom layout

Last updated