Skip to content

Commit c3afaf3

Browse files
committed
removed some extra lines
1 parent 1a62f60 commit c3afaf3

File tree

1 file changed

+0
-5
lines changed
  • frontend/family_tree/src/Components

1 file changed

+0
-5
lines changed

frontend/family_tree/src/Components/Tree.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,11 @@ function D3Tree(){
1515
.append("g")
1616
.attr("transform", "translate(" + width/2 + "," + height/3 + ")");
1717
var data = StudentData;
18-
console.log("data ",data) ;
1918

2019
var treemap = d3.tree().size([height,width]).nodeSize([120, 40]);
2120

2221
var stratify = d3.stratify().id(d=>d.student.name).parentId(d=>d.parent) ;
2322
var root = stratify(data);
24-
console.log("root ",root) ;
2523

2624
var i = 0;
2725
var duration = 750;
@@ -45,9 +43,6 @@ function D3Tree(){
4543
var nodes = treeData.descendants(),
4644
links = treeData.descendants().slice(1);
4745

48-
console.log("nodes ",nodes);
49-
console.log("links ",links);
50-
5146
nodes.forEach(function(d){
5247
d.y = d.depth * 180 ;
5348
});

0 commit comments

Comments
 (0)