File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
webapp/src/components/Flow Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -24,12 +24,12 @@ class Network extends Component {
24
24
25
25
//elaborate setting should be needed depending on the shape of network
26
26
const simulation = d3 . forceSimulation ( )
27
- . force ( 'link' , d3 . forceLink ( ) . id ( ( d ) => d . id ) . distance ( 17 ) )
27
+ . force ( 'link' , d3 . forceLink ( ) . id ( ( d ) => d . id ) . distance ( 15 ) )
28
28
. force ( 'collide' , d3 . forceCollide ( 4 ) )
29
29
. force ( 'charge' , d3 . forceManyBody ( ) )
30
30
. force ( 'center' , d3 . forceCenter ( this . dim . w / 2 , this . dim . w / 2 ) )
31
- . force ( 'x' , d3 . forceX ( ) . strength ( 0.065 ) )
32
- . force ( 'y' , d3 . forceY ( ) . strength ( 0.065 ) )
31
+ . force ( 'x' , d3 . forceX ( ) . strength ( 0.08 ) )
32
+ . force ( 'y' , d3 . forceY ( ) . strength ( 0.08 ) )
33
33
34
34
const link = d3 . select ( '#flow-network' ) . append ( 'g' )
35
35
. attr ( 'class' , 'links' )
You can’t perform that action at this time.
0 commit comments