OrgChart icon indicating copy to clipboard operation
OrgChart copied to clipboard

Vertical chart with multiple columns depending on child count.

Open Fairjustice opened this issue 6 years ago • 11 comments

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: image

Vertical: image

My question: image

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!

Fairjustice avatar Aug 16 '18 20:08 Fairjustice

sorry @Fairjustice . I can't get your points. Could you give more details ?

dabeng avatar Sep 01 '18 02:09 dabeng

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: horizontal

And this is the vertical: 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): objective

(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!

Fairjustice avatar Sep 04 '18 20:09 Fairjustice

Hi @Fairjustice Does the following draft make sense ? compact-chart

We can all it compact chart.

dabeng avatar Sep 12 '18 10:09 dabeng

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.

Fairjustice avatar Sep 12 '18 17:09 Fairjustice

a compact chart function will be amazing, this is exactly what my company is looking for right now.

LucasLiu-Stantec avatar Oct 19 '18 22:10 LucasLiu-Stantec

Has there not been a solution to this? I would like to be able to do this as well.

SunshineBrown avatar Aug 30 '19 19:08 SunshineBrown

is there any solution for it, this is what we are looking for.

miftah1991 avatar Apr 11 '20 09:04 miftah1991

Any solution in 2021?

soylerr avatar Jun 01 '21 09:06 soylerr

I guess no update in 2022? Is there a plan to do this? @dabeng

DCH1 avatar Dec 14 '22 10:12 DCH1

+1 for compact charts...

TommySharpNZ avatar Mar 23 '23 20:03 TommySharpNZ

I solved it by adding the 'compact' option. However, it could not be used together with 'verticalLevel'.

jejecrunch avatar Dec 18 '23 08:12 jejecrunch