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

Unable to add variable distances #62

Open
ghost opened this issue Feb 6, 2018 · 3 comments
Open

Unable to add variable distances #62

ghost opened this issue Feb 6, 2018 · 3 comments

Comments

@ghost
Copy link

ghost commented Feb 6, 2018

Each link in my graph has to have a different distance depending on a value I feed it. I've been breaking my head over this for a week and haven't been able to figure this out. It doesn't look like there's support for this in the library but if I had to implement it, where would I have to do it?

@phil-kt
Copy link

phil-kt commented Apr 3, 2018

+1

@jduncanRadBlue
Copy link

Did anyone figure out a way to do this? THX!

@nonnontrivial
Copy link

@Codewithsk I'm thinking you can pass distance to the simulationOptions prop in the same way that you can pass strength (see https://github.com/uber/react-vis-force/blob/master/stories/index.js#L115).

Or, as the storybook examples suggest, perhaps strength itself will work. The d3 docs are somewhat vague: https://npm.runkit.com/d3-force#link_distance.

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