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

Orgchart width #835

Open DepreesterEwoud opened 7 months ago

DepreesterEwoud commented 7 months ago

I have an Issue. I have a company that is the main node. As you can see in the image below, the main company has 4 sub companies. image

But as you can see in the following image, 2 of the 4 subcompanies also have subcompanies. The problem is that the 4 nodes that derive from the main node, are now displayed in a row. But in my real issue case, i have 30 companies there os they are all in one row and this is to wide when i want to do an image export to pdf from that chart. image

The solution i need to have i something like this image

Does anyone knows how i can solve this or how i can set a width of the amount of nodes that can be in one row?

Thanks!

ZornitsaPesheva commented 7 months ago

Do you want us to try keeping the layout, but with the Grid one, as it looks more achievable?

DepreesterEwoud commented 7 months ago

My favorite layout would be the one above because it will fit all scenarios. But if that is to difficult to achieve, the grid one will also be okay i think. For something like this then image

ZornitsaPesheva commented 7 months ago

Is this the tree layout? And what should happen if you have 4th level, i.e. the red nodes have children? How many levels do you have?

DepreesterEwoud commented 7 months ago

Yes thats the tree layout. If you have the 4th level, you can also have sublevels. I hope this is another good example image

ZornitsaPesheva commented 7 months ago

Thank you for the example. We will have this in our to do list.

DepreesterEwoud commented 7 months ago

Hi, Do you have any idea when this item will be done in your to do list?

ZornitsaPesheva commented 7 months ago

No, we cannot give you any ETA.