Animate shapes like AreaClosed and Pie #1849
-
|
Thank for this amazing library, I checked and there's no example to animate AreaClosed and Pie chart without using XYChart. Could you please let me know how can I animate AreaClosed and Pie Chart? Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
Hey @lednhatkhanh thanks for checking out So my best recommendation is to check out the implementation in |
Beta Was this translation helpful? Give feedback.
-
|
Thank you! @williaster |
Beta Was this translation helpful? Give feedback.
Hey @lednhatkhanh thanks for checking out
visx. Animation in react requires custom implementation because react wasn't built to handle the fast back-to-back updates (60+ per second). Overallvisxtries to not have an opinion on animation because there are many frameworks out there, which is why this functionality is only inxychartwhich is more of a "high level chart" library, not primitives, where we use thereact-springlibrary which is very performant.So my best recommendation is to check out the implementation in
xychartand mimic that. e.g.,AnimatedPath. Another option if you're interested could be migrating those animated primitives to the@visx/react-spring, where we already have…