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

  layout: 'map',
  layoutSettings: {
    lng: 'prop_long',
    lat: 'prop_lat',
    center: [35.087384224892155, 137.15639550369508],
  }

Custom layout

  layout: 'custom',
  layoutSettings: {
    x: 'prop_x',
    y: 'prop_y'
  }

Last updated