Skip to content

Commit 5dbe8ee

Browse files
committed
styled paper graph
1 parent ff2ee36 commit 5dbe8ee

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

app/tools/paper-graph/page.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,9 @@ export default function PaperGraph() {
5555
.distance(150)
5656
.strength(0.7)
5757
)
58-
.force('charge', d3.forceManyBody().strength(-30))
59-
.force('center', d3.forceCenter(GRAPH_WIDTH / 2, GRAPH_HEIGHT / 2));
58+
// .force('charge', d3.forceManyBody().strength(-30))
59+
.force('center', d3.forceCenter(GRAPH_WIDTH / 2, GRAPH_HEIGHT / 2))
60+
.force('collide', d3.forceCollide().radius(30).strength(1));
6061

6162
const link = zoomGroup
6263
.append('g')

0 commit comments

Comments
 (0)