Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

focusedNodeId and zooming on node are not working #515

Open
CopoeruDavid opened this issue Jan 26, 2022 · 0 comments
Open

focusedNodeId and zooming on node are not working #515

CopoeruDavid opened this issue Jan 26, 2022 · 0 comments

Comments

@CopoeruDavid
Copy link

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:

  • OS: [Windows]
  • Browser [Chrome]
  • Version [97.0.4692.71]
  • Node version [14.15.1]
  • react-d3-graph version [2.6.0]
  • d3 version [4.10.2]
  • react version [16.14.0]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant