When creating a trivial Arbor JS graph with a single node, the node jitters around all over the place and no further nodes can be added.
The problem is also reported here by another user:
https://github.com/samizdatco/arbor/issues/12
Would appreciate your help with a fix / workaround
It's not really a fix but I count the number of nodes and if less than on I set the friction to 1.0
if (nodeCount == 1) {
//Stop single nodes bouncing all over the place
sys.parameters({ friction: '1.0' });
}
Using the d3.js library instead of Arbor has solved my problem :-)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With