javascript - Bordered group of nodes in a network graph? - Stack Overflow

I am attempting to implement a network graph using Vis JS library and would like to implement a group o

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
Add a ment  | 

1 Answer 1

Reset to default 6

I'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.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742308789a4419472.html

相关推荐

  • javascript - Bordered group of nodes in a network graph? - Stack Overflow

    I am attempting to implement a network graph using Vis JS library and would like to implement a group o

    13小时前
    10

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信