dabeng / OrgChart

It's a simple and direct organization chart plugin. Anytime you want a tree-like chart, you can turn to OrgChart.
MIT License
2.83k stars 767 forks source link

How to use a node only once? #722

Open gumptionpk opened 8 months ago

gumptionpk commented 8 months ago

Hi,

You have done an amazing job but I need to know if your code allows to use a node only once and then all the links come to it in one place instead of showing the node multiple times?

dabeng commented 6 months ago

Hi @gumptionpk Sorry for late response. I'm aware that you got an good idea or new feature, but I can't get your point. Could you share a draft to demonstrate your idea ?

gumptionpk commented 6 months ago

I am trying to make an organizational chart with this but if we want to have more than one relationships with a node, it shows the node twice. I was asking, if we can show a node only once and show many lines into it or out of it to other nodes?

ValeDale commented 4 months ago

To my understanding, this is not possible. It actually comes with the definition: "tree-structure". I was thinking that maybe a potential solution would be to create "ghost" nodes, reflecting that it´s a "copy" of a main node, with its own css. This could maintain the tree-structure. Another possibility would be to show different trees based on the type of organization (functional, project, etc.). FYI: I am thinking about implementing something like this mid-term. Can share the logic when I do...