vis.jsvis.js-network

Connected nodes overlapping other edges or nodes


I'm using vis.js to display nodes, not all nodes are connected to each other, but they are overlapping as shown in the picture, is there a way with the option to avoid this, I went through the configure options but could not find.

enter image description here


Solution

  • I would recommend using manual configuration for physics and layout:

    configure: {
      enabled: true,
      filter: 'physics, layout',
      showButton: true
    }
    

    and try to play with nodeDistance and nodeSpacing.