Skip to content

“How can I build the hierarchy using layout and subLevel together?” #891

@emirhantekik

Description

@emirhantekik

Hi

Currently my chart looks like this:

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

But I would like it to look like this:

Image

I am trying to create a hierarchy using the tags structure based on the staffGroup values.

'Uzman': { subLevels: 2 }, 'Uzman Yardımcısı': { subLevels: 3 }

when I define it like this, the nodes are displayed side by side.
What I actually want is for these groups to appear vertically aligned according to the hierarchy. I need to display the staffGroup values Uzman, Uzman Yardımcısı, and Eleman vertically under Yönetmen, but still aligned according to the chart’s hierarchy.

Can I apply subLevel to nodes when OrgChart.MIXED_LAYOUT_ALL_NODES = false, so that their Y-axis hierarchy is still preserved without changing the vertical alignment?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions