OrgChart
OrgChart copied to clipboard
verticalLevel view not working on making ajax request
verticalLevel view not working on making ajax request ,below my configuration. if i remove verticallevel than it would work
$('#chart-container').orgchart({
'data' : datascource,
//verticalDepth:1,
'depth': 4,
'ajaxURL': ajaxURLs,
'nodeContent': 'title',
verticalLevel:2,
visibleLevel:2,
})
@amansadhwani did you figure this out yet? I am also stuck with this where I have a Org Chart and after certain level there are many nodes and horizontal view is making the chart very big. Vertical view does not work with ajax calls.
@sohaib-khan : No ,still I am not able to figure it out.
Any news on this issue?
I fixed the problem. But only DEMO is supported.
{
'verticalLevel': 3,
'visibleLevel': 4
}
what do you mean only DEMO? this didn't help me.
If using ajax calls, the loaded data is not displayed in vertical view.
Any news on this issue?
Hope it help
'createNode': function($node, data) {
...
if ($('.toggleBtn', $node).length) {
$('.toggleBtn', $node).addClass('edge bottomEdge')
}
}