danielcaldas / react-d3-graph

Interactive and configurable graphs with react and d3 effortlessly
https://danielcaldas.github.io/react-d3-graph/sandbox/
MIT License
819 stars 233 forks source link

focusedNodeId and zooming on node are not working #515

Open CopoeruDavid opened 2 years ago

CopoeruDavid commented 2 years ago

Describe the bug When using focusedNodeId to zoom on a node programmatically it does nothing.

To Reproduce Steps to reproduce the behavior: My code: https://pastebin.com/T8evrVgM

Expected behavior When clicking on a node it should zoom to that node. Also if that is not possible at least it should zoom on a specific node (Harry) as mentioned in my data var when code is starting

Screenshots If applicable, add screenshots to help explain your problem.

Environment: