Index: arms/js/pdServiceJira.js =================================================================== diff -u -re609903dbf7dfa08b49dfc31b73afa4be50ba6eb -r6675eb417fe68f2243ce7223e8909a74903b98da --- arms/js/pdServiceJira.js (.../pdServiceJira.js) (revision e609903dbf7dfa08b49dfc31b73afa4be50ba6eb) +++ arms/js/pdServiceJira.js (.../pdServiceJira.js) (revision 6675eb417fe68f2243ce7223e8909a74903b98da) @@ -40,7 +40,7 @@ dataTableLoad(); $.getScript("./js/pdServiceVersion/initD3Chart.js").done(function (script, textStatus) { - console.log("트리 차트 생성"); + initD3Chart("/auth-user/api/arms/pdService/getD3ChartData.do"); }); }); Index: arms/js/pdServiceVersion.js =================================================================== diff -u -r6be9564bc0ba06dcb0cd5b16a2432cbad9a4b47e -r6675eb417fe68f2243ce7223e8909a74903b98da --- arms/js/pdServiceVersion.js (.../pdServiceVersion.js) (revision 6be9564bc0ba06dcb0cd5b16a2432cbad9a4b47e) +++ arms/js/pdServiceVersion.js (.../pdServiceVersion.js) (revision 6675eb417fe68f2243ce7223e8909a74903b98da) @@ -75,7 +75,16 @@ }); // --- 데이터 테이블 설정 --- // - dataTableLoad(); + var waitDataTable = setInterval(function() { + try { + if (!$.fn.DataTable.isDataTable("#pdservice_table")) { + dataTableLoad(); + clearInterval(waitDataTable); + } + } catch (err) { + console.log("서비스 데이터 테이블 로드가 완료되지 않아서 초기화 재시도 중..."); + } + }, 313 /*milli*/); }); } Index: arms/js/pdServiceVersion/initD3Chart.js =================================================================== diff -u -r729511b6d2f89adea319c5216f58e85783ed5121 -r6675eb417fe68f2243ce7223e8909a74903b98da --- arms/js/pdServiceVersion/initD3Chart.js (.../initD3Chart.js) (revision 729511b6d2f89adea319c5216f58e85783ed5121) +++ arms/js/pdServiceVersion/initD3Chart.js (.../initD3Chart.js) (revision 6675eb417fe68f2243ce7223e8909a74903b98da) @@ -25,6 +25,8 @@ d3.selectAll("#tree_container svg").remove(); var treeData = data.response; + console.log("initD3Chart treeData"); + console.log(treeData); // Calculate total nodes, max label length var totalNodes = 0; var maxLabelLength = 0; @@ -70,6 +72,8 @@ treeData, function(d) { totalNodes++; + console.log("initD3Chart visit check d"); + console.log(d); maxLabelLength = Math.max(d.name.length, maxLabelLength); }, function(d) {