File tree Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -96,13 +96,13 @@ class Chart extends Component {
96
96
. attr ( "x" , function ( d ) {
97
97
// this positions how far the text is from leaf nodes (ones without children)
98
98
// 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 ? - 20 : 23 ;
99
+ return d . x < Math . PI === ! d . children ? - 7 : 7 ;
100
100
} )
101
101
. attr ( "text-anchor" , function ( d ) { return d . x < Math . PI === ! d . children ? "start" : "end" ; } )
102
102
// this arranges the angle of the text
103
103
. attr ( "transform" , function ( d ) { return "rotate(" + ( d . x < Math . PI ? d . x - Math . PI / 2 : d . x + Math . PI / 2 ) * 1 / Math . PI + ")" ; } )
104
104
. text ( function ( d ) {
105
- return "state" + d . data . index ;
105
+ return d . data . index ;
106
106
} ) ;
107
107
108
108
function reinfeldTidierAlgo ( x , y ) {
Original file line number Diff line number Diff line change 1
1
@import url ('https://fonts.googleapis.com/css?family=Raleway&display=swap' );
2
+ body {
3
+ background-color : black;
4
+ }
2
5
3
- /* this represents leaf nodes aka no children */
6
+ /* this represents leaf nodes aka nodes with no children */
4
7
.node circle {
5
8
fill : # 5249f7 ;
6
9
}
7
10
.node text {
8
- font-size : 20 px ;
11
+ font-size : 15 px ;
9
12
font-family : 'Raleway' , sans-serif;;
10
13
}
14
+ /* this represents text for leaf nodes aka the ones with no children */
15
+ .node--leaf {
16
+ fill : # F4C1B6 ;
17
+ }
11
18
12
19
/* this represents those nodes that have children */
13
20
.node--internal circle {
16
23
/* modifies text of parent nodes (has children) */
17
24
.node--internal text {
18
25
fill : white;
19
- font-size : 30 px ;
26
+ font-size : 25 px ;
20
27
21
28
}
22
29
.link {
23
30
fill : none;
24
31
stroke : # 3853ea ;
25
32
stroke-opacity : 0.4 ;
26
- stroke-width : 30 px ;
33
+ stroke-width : 3 px ;
27
34
}
You can’t perform that action at this time.
0 commit comments