Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9136517
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T08:57:47+00:00 2026-06-17T08:57:47+00:00

Not sure if I’m using the right terminology so this question may already be

  • 0

Not sure if I’m using the right terminology so this question may already be answered somewhere on stackoverflow (if so, please let me know). Is there a way to designate multiple “gravity points” in a d3.js graph where the gravity point is one node with a fixed (x,y) value in each cluster? For example, I’m using the code from this example to display clusters. The only difference in what my graphs will look like is that the nodes will have links to each other (possibly to nodes in other clusters as well). I want to make sure the other clusters overlap as little as possible and still show any links between each cluster.

I’ve tried force.gravity(0.1) with force.charge(-10). That seems to keep the clusters apart but the between-cluster distance continues to decrease as gravity increase because there is only one “gravity point” located in the middle of the graph by default.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T08:57:48+00:00Added an answer on June 17, 2026 at 8:57 am

    Only way i can think of is to add a node where you want to keep gravity and designate its charge with a large positive value , rest of the nodes should have a negative value charge. Hopefully they will attract towards each other. If you have found a better solution , please let me know.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Not sure if this is the right stack to be asking this question, but
Not sure this is a known issue. I’m using VS2012 RC (Ultimate), and Win8
not sure whether I'm phrasing this question correctly but .. how do i get
Not sure if this question is going to make sense or not be here
Not sure if this is the usual sort of question that gets asked around
Not sure if this is the appropriate place for this question, but it seems
Not sure if I'm doing this right: /(https?:\/\/\S+)(\s|(& nbsp;))?/g; This should match a URL
Not sure if someone already asked this but I've specified the color of my
Not sure if this is a dumb question. I've started playing with a few
Not sure if this belongs here because its not technically a 'programming' question, but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.