onlyreddy
onlyreddy
Fit view means suppose if user expanded 100 nodes and some of them may move out of the viewport. But somehow I need to fit them inside my viewport. So...
There is a dirty way to do this by modified the translation of graph elements. After that we need to update `initialZoom `as 1. ``` document .getElementById('info-map-graph-container-zoomable') .setAttribute('transform', `translate(0,0), scale(1)`);...
Yes, the stroke colour will not work. Because you're replacing the entire node with a custom node then the package doesn't have the control of binding the stroke colour. Suppose...
Today only I got the way to do with ref provided by graph. The User has to dynamically update the node click event based from `graphref`. `graphRef.current.onClickNode(history[currentNodeIndex]);` In my case...
The above solution will not work if you have updated any state value.
Hey @antoninklopp , saw your latest PR for node positioning and copied the changed files in my local. But it's not solved the problem of overlapping the nodes. In your...
Created a Codesandbox demo [https://codesandbox.io/s/react-d3-graph-demo-forked-qtdq6?file=/App.js](url) Hope you can access it. In the demo initially added a few nodes and links then based on user clicks of any node then I'm...
Hi @antoninklopp, thanks for taking the time and replying to my comments. I'm very new to this data visualization. I can't compute with x and y of nodes because if...
I'm also facing the same kind of issue :( @antoninklopp @danielcaldas can you please help us!
Yes, I also tried dynamically updating `linkLengths `and `gravity `but no luck.