bumbeishvili / org-chart

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

Is there a way to edit the position of a node in the chart? #397

Open ducanh1296 opened 6 months ago

ducanh1296 commented 6 months ago

In my case, I use expandAll(). Is there any way for me to move Node 2 to the position as shown in the image? (To the right side of Node 1) Thank you, everyone. Screenshot 2024-05-06 at 13 35 33

bumbeishvili commented 6 months ago

Hi, I don't think that there is, without modifying core code

ducanh1296 commented 6 months ago

@bumbeishvili If I have to fix the core, how should I do it? Can you suggest some ideas to help me?

bumbeishvili commented 6 months ago

You should try your luck somewhere along these lines

https://github.com/bumbeishvili/org-chart/blob/d9334eb2c1f9c7b0babebb5d05fa10987f2f2233/src/d3-org-chart.js#L838-L848