Skip to content

Commit

Permalink
fix: change graph configurations to make it force-directed
Browse files Browse the repository at this point in the history
Signed-off-by: vikhy-aws <191836418+vikhy-aws@users.noreply.github.com>
  • Loading branch information
vikhy-aws committed Jan 30, 2025
1 parent b5ec7a5 commit 0cb9554
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion public/pages/Correlations/utils/constants.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,16 @@ export const graphRenderOptions = {
height: '800px',
width: '100%',
physics: {
enabled: true,
barnesHut: {
gravitationalConstant: -2000,
centralGravity: 0.2,
springConstant: 0.05,
springLength: 100,
damping: 0.1,
},
stabilization: {
enabled: true,
fit: true,
iterations: 1000,
},
Expand All @@ -42,7 +51,7 @@ export const graphRenderOptions = {
zoomView: true,
zoomSpeed: 0.2,
dragView: true,
dragNodes: false,
dragNodes: true,
multiselect: true,
tooltipDelay: 50,
hover: true,
Expand Down

0 comments on commit 0cb9554

Please sign in to comment.