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

node layout and level #862

Open luyzfernando08 opened 2 months ago

luyzfernando08 commented 2 months ago

Good morning, I would like to ask a question about the arrangement of nodes.

I need to create an organizational chart by level, so I am using tags and the subLevels attribute.

The layout is correctly assembled, but I cannot change the arrangement of the nodes at the last level.

In this example, you can see the level number in the arrows and the last level entirely horizontal in the rectangle. image

This is a problem when exporting because it takes up a lot of lateral space and the visualization is not good.

I would like the layout to look like this:

image

For some reason, it is not possible to use the node-layout event with the subLevels attribute, making it impossible to change the arrangement of the nodes.

Is there a solution to the problem displayed over there? Is the behavior of node-layout concerning to subLevels as expected?

Thanks

ZornitsaPesheva commented 2 months ago

Hi, Could you please create a simple code example of what you have now in our code app? https://code.balkan.app/org-chart-js/simple-example#JS

luyzfernando08 commented 2 months ago

Hi, Could you please create a simple code example of what you have now in our code app? https://code.balkan.app/org-chart-js/simple-example#JS

Done.

https://code.balkan.app/node-layout-and-level#JS

ZornitsaPesheva commented 2 months ago

Can you please also send a screenshot of how you'd like the layout of the chart form the Code example to look?

luyzfernando08 commented 2 months ago

Você também pode enviar uma captura de tela de como gostaria que o layout do gráfico do exemplo de código fosse?

image

ZornitsaPesheva commented 2 months ago

Here is it: https://code.balkan.app/orgchart-js/issue862#JS