小编Roh*_*olm的帖子

Multiple lines between nodes and hierarchical layout in vis.js

I have a vis.js network graph that contains multiple edges between nodes and I am trying to have it setup with a hierarchical layout as well. If I do a normal graph without the hierarchical layout options then multiple lines are shown between nodes, however, once I turn on/place in the hierarchical layout option only one line is drawn.

Below are two plunkers showing what I mean:

https://plnkr.co/edit/c8SuBc0XjDZnn6im2vdg (Plunker with hierarchical layout off)

var options = { 
    height: '400px', 
    edges: …
Run Code Online (Sandbox Code Playgroud)

vis.js vis.js-network

8
推荐指数
1
解决办法
3381
查看次数

标签 统计

vis.js ×1

vis.js-network ×1