BALKANGraph / OrgChartJS

OrgChart JS is a simple, flexible and highly customizable organization chart plugin for presenting the structure of your organization and the relationships in an elegant way.
https://balkan.app/orgchartjs
252 stars 84 forks source link

separation between two trees with different root #833

Closed andreatricoli closed 8 months ago

andreatricoli commented 8 months ago

Hi everyone,

There is a way to increase the separation between two trees with different root? i tried with siblingSeparation but it increments also the separation between sibling in the same tree

thank you very much

ZornitsaPesheva commented 8 months ago

Hi Andrea

Check if this is what you need: https://code.balkan.app/org-chart-js/subtreeseparation#JS

or if you mean trees with different roots: https://code.balkan.app/org-chart-js/separation-between-trees#JS

andreatricoli commented 8 months ago

Hi thank you for the reply, i mean exactly the second case - space between trees with different root - i saw your example but in my case i have more nodes without pid and i don't have stid as your example, is it possibile increase the space between trees in this case?

this is my situation -> https://code.balkan.app/separation-between-trees-nostpid#JS

ZornitsaPesheva commented 8 months ago

You need to use stpids to increase the space. There no other way out of the box

andreatricoli commented 8 months ago

thank you, but in this case if in a second moment the others trees will have subtree the space between sibling will increase too as you can see in this example -> https://code.balkan.app/separation-between-trees-wrong#JS

what am I doing wrong?

thank you

ZornitsaPesheva commented 8 months ago

We have edited the example so the trees will not overlap: https://code.balkan.app/org-chart-js/separation-between-trees#JS Could you please check if this is what you need, because I don't see a reason to increase the space and have this: image