From 686e95a0c76f49cf853799410b9418a2b245a2bd Mon Sep 17 00:00:00 2001 From: "Burgstede, W.Y. (Ysbrand, Student B-CREA)" Date: Sat, 22 Jun 2024 01:44:28 +0200 Subject: [PATCH] Put the graph forces back to default --- resources/js/Pages/Items/Graph.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/js/Pages/Items/Graph.vue b/resources/js/Pages/Items/Graph.vue index d2022e0..8534e90 100644 --- a/resources/js/Pages/Items/Graph.vue +++ b/resources/js/Pages/Items/Graph.vue @@ -88,8 +88,8 @@ const configs = reactive( return d3 .forceSimulation(nodes) .force("edge", forceLink.distance(40).strength(0.5)) - .force("charge", d3.forceManyBody().strength(-1000)) - .force("center", d3.forceCenter().strength(0.01)) + .force("charge", d3.forceManyBody().strength(-800)) + .force("center", d3.forceCenter().strength(0.05)) .alphaMin(0.001) } }),