File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -88,15 +88,16 @@ class Chart extends Component {
88
88
} ) ;
89
89
90
90
node . append ( "circle" )
91
- . attr ( "r" , 35.5 )
91
+ . attr ( "r" , 20 )
92
92
93
93
node
94
94
. append ( "text" )
95
- . attr ( "dy" , "0.1em" )
95
+ // adjusts the y coordinates for the node text
96
+ . attr ( "dy" , "0.3em" )
96
97
. attr ( "x" , function ( d ) {
97
98
// this positions how far the text is from leaf nodes (ones without children)
98
99
// negative number before the colon moves the text of rightside nodes, positive number moves the text for the leftside nodes
99
- return d . x < Math . PI === ! d . children ? - 7 : 7 ;
100
+ return d . x < Math . PI === ! d . children ? - 6 : 7 ;
100
101
} )
101
102
. attr ( "text-anchor" , function ( d ) { return d . x < Math . PI === ! d . children ? "start" : "end" ; } )
102
103
// this arranges the angle of the text
You can’t perform that action at this time.
0 commit comments