dabeng / OrgChart

It's a simple and direct organization chart plugin. Anytime you want a tree-like chart, you can turn to OrgChart.
MIT License
2.86k stars 768 forks source link

initCompleted not working for ajax datasource #656

Open vincentyong-89 opened 2 years ago

vincentyong-89 commented 2 years ago

The initCompleted option not working. The function was called before the chart rendered completely. Any help or solution are greatly appreciated.

fadilmalik commented 1 year ago

can you send your code.

idk but on my experience initCompleted cannot pair with pan

wdj315 commented 1 year ago

same here and below code get error .... $.ajax({ url: ajaxurl, type: "GET", success: function(data) { do something here $("#chart-container").orgchart({ 'data' : data , 'nodeContent': 'title', 'zoom':true, }); }, error: function(xhr, status, error) { console.error(error); } },'json');