OrgChart icon indicating copy to clipboard operation
OrgChart copied to clipboard

verticalLevel view not working on making ajax request

Open amansadhwani opened this issue 5 years ago • 7 comments

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 avatar May 28 '20 02:05 amansadhwani

@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 avatar May 31 '20 09:05 sohaib-khan

@sohaib-khan : No ,still I am not able to figure it out.

amansadhwani avatar Jun 01 '20 03:06 amansadhwani

Any news on this issue?

sohaib-khan avatar Aug 01 '20 22:08 sohaib-khan

I fixed the problem. But only DEMO is supported.

 { 
  'verticalLevel': 3,
  'visibleLevel':  4
 }

SeuHkx avatar Aug 04 '20 01:08 SeuHkx

what do you mean only DEMO? this didn't help me.

If using ajax calls, the loaded data is not displayed in vertical view.

valentinomariotto avatar Oct 18 '22 08:10 valentinomariotto

Any news on this issue?

fadilmalik avatar Nov 29 '22 02:11 fadilmalik

Hope it help

'createNode': function($node, data) {
    ...
    
    if ($('.toggleBtn', $node).length) {
        $('.toggleBtn', $node).addClass('edge bottomEdge')
    }
}

fadilmalik avatar Dec 01 '22 02:12 fadilmalik