Force effect computation, or alternate approach?
I'm trying to write my own force directed graph, I am able to display nodes and links just fine with a random initial coordinate.
I also have a simple function that calculates the next positions for the nodes.
However I need to call that function at a rather high rate.
When I put it inside of an interval, nothing gets updated. I'm pobbably missing something here.
Any assistance would be much appreciated.
2 Replies
Thanks, is there a different way I should handle this, I need to perform the calculation many times
legend, I'll take a look.
Does it support edge labels?
I tried D3 before this, which worked fine, but I need to be able to react to nodes or edges being pushed to my store and inseted reactively. The behaviour was either non-reactive or would reset the layout (positions) every time
i'd be very interested if you know of any workarounds
unlike many of the d3 primitives, the graph computation mutates it's internal state and isn't easy to hook into
Nice, I'll have a look
I wanted to use Cosmograph, but had the same issue
Not working correctly yet, but is reacting to changes (although positions are reseting and simulation does not restart)
https://gist.github.com/sachaw/f9c73aa1806ab26cd52b7c3237b02200