Closed nau12345 closed 1 year ago
Currently, there is no straightforward way. For now, I'd suggest assigning _expanded
property to nodes you want to be expanded
Thanks for the response.
But if I add _expanded, the nodes don't appear expanded.
@nau12345 add that before you pass the data to the org chart
Can you give me an example?
Roughly
data.forEach(d=>d._expanded=true)
new OrgChart().data(data)...render()
Thanks!
When the chart inits only shows 2 nodes levels, if I want to see more levels, I have to expand the nodes.
How can I init the chart with all the nodes expanded?
When the chart inits:
What I'm looking for when the chart inits: