File tree Expand file tree Collapse file tree 1 file changed +0
-5
lines changed
frontend/family_tree/src/Components Expand file tree Collapse file tree 1 file changed +0
-5
lines changed Original file line number Diff line number Diff line change @@ -15,13 +15,11 @@ function D3Tree(){
15
15
. append ( "g" )
16
16
. attr ( "transform" , "translate(" + width / 2 + "," + height / 3 + ")" ) ;
17
17
var data = StudentData ;
18
- console . log ( "data " , data ) ;
19
18
20
19
var treemap = d3 . tree ( ) . size ( [ height , width ] ) . nodeSize ( [ 120 , 40 ] ) ;
21
20
22
21
var stratify = d3 . stratify ( ) . id ( d => d . student . name ) . parentId ( d => d . parent ) ;
23
22
var root = stratify ( data ) ;
24
- console . log ( "root " , root ) ;
25
23
26
24
var i = 0 ;
27
25
var duration = 750 ;
@@ -45,9 +43,6 @@ function D3Tree(){
45
43
var nodes = treeData . descendants ( ) ,
46
44
links = treeData . descendants ( ) . slice ( 1 ) ;
47
45
48
- console . log ( "nodes " , nodes ) ;
49
- console . log ( "links " , links ) ;
50
-
51
46
nodes . forEach ( function ( d ) {
52
47
d . y = d . depth * 180 ;
53
48
} ) ;
You can’t perform that action at this time.
0 commit comments