OrgChart
OrgChart copied to clipboard
Vertical chart with multiple columns depending on child count.
Hi team!
First, thank you so much for your continued support on the tool and the amazing library.
I have been using the offered options and solutions for all of my org-chart problems but I came across a new issue that I'm not quite sure how to handle. I am aware of the ability to set certain level to be vertical form that point on-wards, but has anyone created a method or function to divide the vertical sibling into N columns depending on the amount of children the parent has?
An example would be: Benedict (Has 8 children)
Sorry for the bad paint!
Horizontal:
Vertical:
My question:
I was thinking of evaluating each level by the amount of children and then do the module of the desired limit to obtain the amount of divisions that would be needed, then I would need to dynamically create that N amount of "ghost" nodes to divide the children between them but I can't seem to know where to start doing this.
Anyone has any idea on how should I approach this? Thanks!
sorry @Fairjustice . I can't get your points. Could you give more details ?
Hi @dabeng , no problem! Thank you very much for following up :) I tried doing some paint work so please let me know if it's a little bit more clear:
This is the current horizontal visual:
And this is the vertical:
Now in this case Su Miao only has 2 children but my case would be applicable for someone with many children that create a very long (10+) vertical hierarchy , thus my objective is to try and create something like this if the variable N (amount of children surpasses the set limit):
(Sorry that the image is mirrored, I had to use some very basic Paint skills but I think my point is clearer now) In that example I divided the children in 2 vertical columns but it could of course be more depending on how many there are.
Is there any way you think this is achievable? Thank you again for your support!
Hi @Fairjustice Does the following draft make sense ?
We can all it compact chart.
Hi @dabeng Yes!!! It totally makes sense, did you created a custom function for it? I would be more than glad to help in anything I can from my side.
a compact chart function will be amazing, this is exactly what my company is looking for right now.
Has there not been a solution to this? I would like to be able to do this as well.
is there any solution for it, this is what we are looking for.
Any solution in 2021?
I guess no update in 2022? Is there a plan to do this? @dabeng
+1 for compact charts...
I solved it by adding the 'compact' option. However, it could not be used together with 'verticalLevel'.