Animating zoom on click in a Geo Projection (in a performant way) #1833
Unanswered
GustavoHenriqueAP
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey, everyone!
So, I am trying to replicate the @mbostock's Zoom to Bounding Box into Visx.
I got the bounding box zoom visualization on click, but to animate it I am still stuck.
I've tried using the code of AnimatedPath file, present in the "XYChart", which uses React Spring. But I am not used to animations library and because the path is re-rendering every state by hover events (using a tooltip), all becomes a bit laggy.
Here is a example (without animations): Geo Projection Sandbox.
I appreciate any help. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions