-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Organization Chart, wrong position for children with normal layout #13915
Comments
Hi @alvarezguille, As a workaround, you can declare a negative offset. Demo: |
Thanks for the quick answer and the workaround! 🙇♂️ |
Hi. I thought I'd add another example of this not working quite as expected: https://jsfiddle.net/gma7etru/1/ Does anyone have any suggested workarounds for this? |
You can change order of nodes in the data: https://jsfiddle.net/BlackLabel/bws9o75a/1/ or change layout: https://jsfiddle.net/BlackLabel/bws9o75a/2/ |
Hi @pawelfus Thanks for the tips, though the graph I used as an example is a lot simpler than the one I'm trying to put together. We're also trying to do this programmatically, so having each node have it's own layout element might not be feasible, especially since the end goal is to have this be user-driven. |
Thanks for providing more details! I don't see any other workaround you can use at this moment |
Hi @pawelfus. Is there a potential roadmap for when this might get fixed? |
I can't provide any estimate, but it seems we forget to label the issue (or GH tricked us..) so it was never discussed internally. I will mention this issue on the next meeting, if this will get into the planned releases, ticket will get proper status. |
Hi @pawelfus, is there any update on this? |
We didn't find any good solution for your chart. With current algorithm, it's quite tricky issue with correctly positioning such datasets. We might need to implement this from scratch (different algorithm perhaps?), unlikely to happen in the nearest feature. I will highlight this issue again, on the next meeting, perhaps we will come up with some new ideas. |
We think this issue can get an acceptable solution with:
This is the idea in action: Mixing What do you think @jethas-bennettjones ? Could you test my solution above and let us know the results? |
I'm facing the same issue as discussed here. Alternating hanging and normal layouts only gets you so far, and manual offset adjustments is not a viable solution for us. It seems like this has been WIP for awhile, what process do you use to prioritize these issues into your dev process? Thanks, |
Org chart: Improve mixed layouts, touch #13915.
Expected behaviour
Nodes are placed below their parent node if possible.
Actual behaviour
Position of node's children seems off.
Both when having mixed layouts in a level or when having all normal layout in a level.
Nodes are shifted to the right.
Live demo with steps to reproduce
All normal layout: https://jsfiddle.net/alvarezg/rb3ftuLy/
Mixed normal and hanging: https://jsfiddle.net/alvarezg/g7aepx49/
Product version
Highcharts, Highstock 8.1.2
The text was updated successfully, but these errors were encountered: