bumbeishvili / org-chart

Highly customizable org chart. Integrations available for Angular, React, Vue
https://stackblitz.com/edit/web-platform-o5t1ha
MIT License
927 stars 330 forks source link

How can I customize the position of child nodes? #407

Open dotuananhh opened 6 months ago

dotuananhh commented 6 months ago

By default, child nodes will form 2 columns (as shown below). image I want the parent nodes to be spread out in a horizontal row and the non-parent nodes to be spread out in a vertical row. By default, the bottom nodes will not be parent nodes (as shown below). image Thanks!

bumbeishvili commented 6 months ago

Isn't that already how it works currently?

image

If you just want a different link, you can customize the links for top 2 children and hide for others

dotuananhh commented 5 months ago

Can you show me an example code of a parent node with only 1 child node column? Thanks!

bumbeishvili commented 5 months ago

Can you show me an example code of a parent node with only 1 child node column? Thanks!

That part is not implemented, it always has double children in columns