Spaces:
Running
Running
Update index.html
Browse files- index.html +42 -26
index.html
CHANGED
@@ -613,33 +613,49 @@
|
|
613 |
var id = data[i].Id;
|
614 |
if(lableName == d.source.name && (causeOrEffect == "cause")){
|
615 |
|
616 |
-
for (var j = 0; j < data.length; j++) {
|
617 |
-
|
618 |
-
|
619 |
-
|
620 |
-
|
621 |
-
|
622 |
-
|
623 |
-
|
624 |
-
|
625 |
-
|
626 |
-
|
627 |
-
|
628 |
-
|
629 |
-
|
630 |
-
|
631 |
-
|
632 |
-
|
633 |
-
|
634 |
-
|
635 |
-
|
636 |
-
|
637 |
-
|
638 |
-
|
639 |
-
|
640 |
-
|
641 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
642 |
}
|
|
|
643 |
|
644 |
|
645 |
}
|
|
|
613 |
var id = data[i].Id;
|
614 |
if(lableName == d.source.name && (causeOrEffect == "cause")){
|
615 |
|
616 |
+
// for (var j = 0; j < data.length; j++) {
|
617 |
+
// if(id == data[j].Id){
|
618 |
+
// var lableName = data[j].Labellevel2;
|
619 |
+
// var causeOrEffect = data[j].causeOrEffect;
|
620 |
+
// if(lableName == d.target.name && (causeOrEffect == "effect")) {
|
621 |
+
|
622 |
+
// var tr = tbody.append("tr"); // create a table row for each item
|
623 |
+
|
624 |
+
// tr.append("td").text(data[i].Id);
|
625 |
+
// tr.append("td").text([data[i].Fullsentence]);
|
626 |
+
// tr.append("td").text([data[i].Component]);
|
627 |
+
// tr.append("td").text([data[i].causeOrEffect]);
|
628 |
+
// tr.append("td").text([data[i].Labellevel1]);
|
629 |
+
// tr.append("td").text([data[i].Labellevel2]);
|
630 |
+
|
631 |
+
// tr = tbody.append("tr")
|
632 |
+
// // append a table cell with the Id property
|
633 |
+
// tr.append("td").text(data[j].Id);
|
634 |
+
// tr.append("td").text([data[j].Fullsentence]);
|
635 |
+
// tr.append("td").text([data[j].Component]);
|
636 |
+
// tr.append("td").text([data[j].causeOrEffect]);
|
637 |
+
// tr.append("td").text([data[j].Labellevel1]);
|
638 |
+
// tr.append("td").text([data[j].Labellevel2]);
|
639 |
+
// }
|
640 |
+
|
641 |
+
// }
|
642 |
+
// }
|
643 |
+
|
644 |
+
for (var j=0; j<data.length; j++){
|
645 |
+
if (id == data[j].Id){
|
646 |
+
var labelName = data[j].Labellevel2;
|
647 |
+
var causeOrEffect = data[j].causeOrEffect;
|
648 |
+
|
649 |
+
if(labelName == "Non-performance"&& causeOrEffect == "effect"){
|
650 |
+
var tr = tbody.append("tr");
|
651 |
+
tr.append("td").text(data[j].Id);
|
652 |
+
tr.append("td").text([data[j].Fullsentence]);
|
653 |
+
tr.append("td").text([data[j].Component]);
|
654 |
+
tr.append("td").text([data[j].causeOrEffect]);
|
655 |
+
tr.append("td").text([data[j].Labellevel1]);
|
656 |
+
tr.append("td").text([data[j].Labellevel2]); }
|
657 |
}
|
658 |
+
}
|
659 |
|
660 |
|
661 |
}
|