Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to distance groups in different areas using vis physics? #69

Open
vadim-chernev8 opened this issue Jul 10, 2019 · 3 comments
Labels
question Further information is requested

Comments

@vadim-chernev8
Copy link

vadim-chernev8 commented Jul 10, 2019

Is there a way to distance groups in different areas using vis physics?

I want to distance my network groups on different areas using vis.

Final result i want to achieve is like here
WorlcupNwtwork. I tried to use the same physics but can not achieve the same...

I already tried different solvers and physics configurations but no any positions results.

Please help me !!

My current physics

  physics: {
    stabilization: {
      enabled: true,
      iterations: 1000,
      updateInterval: 25,
    },
    forceAtlas2Based: {
      gravitationalConstant: -191,
      centralGravity: 0.045,
      springLength: 5,
      springConstant: 0.61,
      damping: 0.4,
    },
    solver: 'forceAtlas2Based',
    minVelocity: 0.75,
    maxVelocity: 50,
    timestep: 0.35,
  }

Screen Shot 2019-07-10 at 11 46 30 AM

@micahstubbs micahstubbs added the question Further information is requested label Jul 18, 2019
@micahstubbs
Copy link
Member

hi @vadim-chernev8, good question.

@geminoa curious, have you seen this done before?

@vadim-chernev8
Copy link
Author

vadim-chernev8 commented Jul 18, 2019 via email

@geminoa
Copy link
Collaborator

geminoa commented Jul 19, 2019

@micahstubbs I'm not sure.

Although I have tried worldcup example with @vadim-chernev8 's physics and it seems working correctly.
スクリーンショット 2019-07-19 12 52 33

I think it might be possibly a problem of not for physics, but group attribute in the datasource as described here. https://visjs.org/docs/network/groups.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants