使用Vis.js

时间:2016-08-23 08:35:12

标签: javascript jquery html charts vis.js

我需要类似于FamilyTree的族树,在节点连接点处使用单向箭头。我已经浏览了示例http://visjs.org/network_examples.html,我不清楚哪些网络示例可以轻松修改以生成我需要的图表。我尝试修改Hierarchical Method(定向)示例,但它不起作用,当我添加新节点并将其连接到右端节点时,图形正在分解。我想在节点之间以水平和垂直方式连接这条连线,如附图所示。任何人都可以帮助我。

1 个答案:

答案 0 :(得分:0)

这种90°的边缘是not possible at the moment。在vis-library中已经存在open feature-request

vis.js与版本4.16.1最接近的是:

enter image description here

Here you'll find the example code