首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >visjs 分层布局 新增节点 线条交叉问题?

visjs 分层布局 新增节点 线条交叉问题?

提问于 2023-09-26 10:39:45
回答 0关注 0查看 59

麻烦请教一下 各位大佬

如何避免这种线条交叉问题

这是我的代码配置

代码语言:js
复制
      nodes: {
        font: {
          size: 0
        },
        size: 10
      },
      layout: {
        randomSeed: 1,
        improvedLayout : true,
        hierarchical: {
          enabled: true,
          levelSeparation: 200,
          nodeSpacing: 100,
          treeSpacing: 0,
          blockShifting: true,
          edgeMinimization: false,
          parentCentralization: true,
          sortMethod: "directed",
          direction: "UD",
          shakeTowards: "roots"
        }
      },
      physics: {
        enabled: false,
        forceAtlas2Based: {
          springConstant: 1
        },
        "barnesHut": {
          "avoidOverlap": 0.2
        },
        repulsion: {
          nodeDistance: 100,
        },
        stabilization: {
          fit: true
        }
      },
      edges: {
        font: { align: "top" },
        smooth: false,
        arrows: {
          to: {
            scaleFactor: 0.3
          }
        }
      }

回答

和开发者交流更多问题细节吧,去 写回答
相关文章

相似问题

相关问答用户
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档