Center view on a particular node? #591
Answered
by
vincent-hl
vincent-hl
asked this question in
Q&A
-
|
Is it possible to center the graph view on a particular node in the graph? |
Beta Was this translation helpful? Give feedback.
Answered by
vincent-hl
Oct 4, 2025
Replies: 1 comment 1 reply
-
|
@vincent-hl yes, please see the "click to focus" example: https://vasturiano.github.io/react-force-graph/example/click-to-focus/ |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks! I am using the 2D version. I took the distance ratio formula from the example you provided and used centerAt. It worked perfectly! thanks!