admin管理员组文章数量:1332373
I am attempting to implement a network graph using Vis JS library and would like to implement a group of nodes that are inside a logical group (box). VisJS allows grouping of nodes but is not implemented in a visual way that I am looking for.
Another library that executes this perfectly is GoJS: .html Another example from VisJS that shows network graph I would like to implement, but no example in documentation: .png
I would like to have nodes placed into larger boxes to represent the group of nodes.
Any ideas or suggestions for implementing this?
I am attempting to implement a network graph using Vis JS library and would like to implement a group of nodes that are inside a logical group (box). VisJS allows grouping of nodes but is not implemented in a visual way that I am looking for.
Another library that executes this perfectly is GoJS: http://gojs/latest/samples/basic.html Another example from VisJS that shows network graph I would like to implement, but no example in documentation: http://visjs/docs/img/vis_overview.png
I would like to have nodes placed into larger boxes to represent the group of nodes.
Any ideas or suggestions for implementing this?
Share Improve this question edited Nov 2, 2014 at 20:14 Lars Kotthoff 109k16 gold badges210 silver badges208 bronze badges asked Nov 2, 2014 at 20:00 Eric ForbesEric Forbes 5114 silver badges8 bronze badges 1- Hello @Eric, The VisJS network graph you're referring to is just a PNG image of the VisJS architecture. – yaronyogev Commented Aug 4, 2015 at 6:55
1 Answer
Reset to default 6I'm the developer of the network module of vis. Our apologies for not seeing this issue sooner, but most of our munication is done through GitHub.
On the upside, since the release of v4 we support render events. You can use these to draw whatever you want on the canvas, including borders behind groups of nodes. Take a look at the example:
https://visjs.github.io/vis-network/examples/network/events/renderEvents.html
Keep in mind that this is aesthetic only. The physics engine will not partmentalise these boundaries so the nodes may interact with the others.
We often hear this request from people who want to use vis network as a flow editor. Even though this is not your issue Id like to point out that this is not what we designed the network for. We may have a module for this in the future though.
本文标签: javascriptBordered group of nodes in a network graphStack Overflow
版权声明:本文标题:javascript - Bordered group of nodes in a network graph? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742308788a2450449.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论