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

graph position wrong after data prop change #56

Open
James2516 opened this issue Oct 23, 2017 · 8 comments
Open

graph position wrong after data prop change #56

James2516 opened this issue Oct 23, 2017 · 8 comments

Comments

@James2516
Copy link

James2516 commented Oct 23, 2017

If i update the data props of graph without remounting it, the graph goes out of place.

See the demo below.

Edit 40p1rqryz4

I can fix it by adding

const simulation = forceSimulation();
simulation.strength = {};

to

applyAlphaFactors(simulation, options);
and renaming the simulation param, but that doesn't look like a proper fix.

@madsonic
Copy link

facing this too

@roscioliadp
Copy link

Also facing this.

@etwerk
Copy link

etwerk commented Jan 5, 2018

Did anyone solve this?

@ThieryMichel
Copy link

Facing this too

@RosaRomeroGomez
Copy link

Me too!

@RosaRomeroGomez
Copy link

It seems @James2516 addition was pushed to react-vis-force/src/utils-d3-force.js but still it doesn't work for me. I've read in other related open issues that it might be also related to using .map to generate nodes and links.

@kristianmandrup
Copy link

@rosa what could be the particular issue with respect to using .map? Where did you read this?

@RosaRomeroGomez
Copy link

@kristianmandrup was issue #60.

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

7 participants