Skip to content

Commit 9a6c8f8

Browse files
committed
Modify network vis setting
1 parent f14a8a4 commit 9a6c8f8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

webapp/src/components/Flow/Network.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ class Network extends Component {
2424

2525
//elaborate setting should be needed depending on the shape of network
2626
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))
2828
.force('collide', d3.forceCollide(4))
2929
.force('charge', d3.forceManyBody())
3030
.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))
3333

3434
const link = d3.select('#flow-network').append('g')
3535
.attr('class', 'links')

0 commit comments

Comments
 (0)