almende / vis

⚠️ This project is not maintained anymore! Please go to https://github.com/visjs
7.85k stars 1.48k forks source link

Visualizing grouped nodes #1716

Closed 0x3a closed 7 years ago

0x3a commented 8 years ago

Hi,

I was wondering if there any possibilities to visualize grouping of nodes. I'm not talking about grouping in the form of clusters but more visually highlighting them in some form (or drawing a line around the nodes f.e). The closest example I could find online of what I'm looking for is this: http://docs.yworks.com/yfiles/doc/developers-guide/figures/organic_ellipse_no_overlaps.png

josdejong commented 8 years ago

Something like that is not supported out of the box, but Network has hooks (like events beforeDrawing and afterDrawing which you can use to do some additional drawing on the canvas.

0x3a commented 8 years ago

Yeah I was looking into that a bit to see if it was possible. However I cannot be sure the nodes are grouped together before drawing it. I'm going to see if I can force an invisible node and draw a 'group' around the associated nodes when they are close.

Would be an interesting feature though.

mojoaxel commented 7 years ago

I'm closing this issue due to inactivity. If this issue is still relevant please feel free to reopen.