graphview icon indicating copy to clipboard operation
graphview copied to clipboard

How to stop the graph from reorganizing

Open quasar-pankaj opened this issue 4 years ago • 5 comments

Hello Nabil,

I am using GraphView in one of my projects and found it awesome. But I have a question not exactly an issue because I might be missing something. The question is - Each time the graph is refreshed it rearranges itself which becomes quite awkward when the graph is large as visually finding the nodes becomes quite daunting using FruchtermanReingold algorithm. I tried setting the x and y values of the nodes but it is apparently having no effect.

Regards, Pankaj

quasar-pankaj avatar Jun 17 '21 04:06 quasar-pankaj

I have updated the code in 1.0.0. now you can animate the views for fruchterman reignold and it won't jump around

nabil6391 avatar Sep 23 '21 10:09 nabil6391

Hi, I am using directed graphs of GraphView package and I had a similar question. When the page loads for the first time or is refreshed the graph reorganizes and then settles in one place. However, I do not want this to happen. I want the graph to be static. I am using GraphView version 1.0.0 and I also tried implementing animated: true or animated: false as a parameter to GraphView() but it is still the same. The graph still moves around at the beginning. Please guide.

Thanks & Regards, Deeksha

Deeksha-Pandit avatar Oct 06 '21 10:10 Deeksha-Pandit

^bump on this, how do you animate the views for fruchterman reignold such that it does not jump around?

michaeldwu avatar Nov 26 '21 22:11 michaeldwu

Fruchterman Reignold should already be animated now if you use 1.0.0

nabil6391 avatar Nov 27 '21 04:11 nabil6391

@Deeksha-Pandit did you figure out how to stop it from reorganizing?

matejvagic avatar Jan 03 '24 13:01 matejvagic