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

Make a graph with circles bigger than radius:5 #57

Open
corganfuzz opened this issue Nov 30, 2017 · 2 comments
Open

Make a graph with circles bigger than radius:5 #57

corganfuzz opened this issue Nov 30, 2017 · 2 comments

Comments

@corganfuzz
Copy link

corganfuzz commented Nov 30, 2017

How do I make a Graph with circles bigger than 5 px ( or whatever the unit is)?
If I do radius: 50 , the links do not scale along with the new radius. so how do you change the links length, size ?
image

<ForceGraphNode
                  key={id}
                  node={{
                    id,
                    label,
                    // radius:50
                  }}
                  fill={data.nodes.type}
@Tzinov15
Copy link

Tzinov15 commented Jan 2, 2018

I have the same question, how can you configure the length of links between nodes?

@laurabrooks
Copy link

I found that adding a radiusMargin in simulationOptions lets you account for a larger node radius and makes the lines longer

<InteractiveForceGraph
        simulationOptions = {{
          height: 900,
          width: 1680,
          radiusMargin: 20 //3 is default
        }}
>

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

No branches or pull requests

3 participants