react-graph-vis
react-graph-vis copied to clipboard
How to fix node position?
I tried setting x, y values for the nodes, and set it as fixed. But I noticed that it still renders at different position on each reload.
nodes: [ { id: 1, label: '1', title: '1 tootip text', fixed: { x: true, y: true, }, group: 'myGroup', physics: false, size: 32, x: -35, y: -152, },
@number-00 Try setting randomSeed
, this is what helped me
This doesn't seem to work for me either, and randomSeed
didn't help...
OK, I was using physics: true
, and the physics were just pulling things out of place 🤦♂️