From ee78c47f77e897fce166535df60c30bf687fbc88 Mon Sep 17 00:00:00 2001 From: vikhy-aws <191836418+vikhy-aws@users.noreply.github.com> Date: Thu, 30 Jan 2025 13:25:36 -0800 Subject: [PATCH] fix: change graph configurations to make it force-directed Signed-off-by: vikhy-aws <191836418+vikhy-aws@users.noreply.github.com> --- public/pages/Correlations/utils/constants.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/public/pages/Correlations/utils/constants.tsx b/public/pages/Correlations/utils/constants.tsx index 22c208de..08ad33c2 100644 --- a/public/pages/Correlations/utils/constants.tsx +++ b/public/pages/Correlations/utils/constants.tsx @@ -35,16 +35,16 @@ export const graphRenderOptions = { physics: { enabled: true, barnesHut: { - gravitationalConstant: -2000, - centralGravity: 0.2, - springConstant: 0.05, - springLength: 100, - damping: 0.1, + gravitationalConstant: -7000, + centralGravity: 0.9, + springConstant: 0.01, + springLength: 125, + damping: 0.07, }, stabilization: { enabled: true, fit: true, - iterations: 1000, + iterations: 1500, }, }, interaction: {