How do I integrate visx realtime updating graphs with React JS without re-render of component? #1481
-
similar question was asked for Plottly (with the answer that an update method used for that) I guess maybe better title/question would be best practices for visx and dynamic data (without re-ender) How do I integrate Plotly realtime updating graphs with React JS without rerender of component |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @zkbitcoin 👋 thanks for checking out visx. I'm converting this to a discussion since it's more of a usage question than an issue. Compared to other react charting libraries that use d3 and let d3 update the DOM directly, visx uses d3 only for math and handles all DOM rendering on its own. Because of react's virtual DOM, this can lead to perf issues when components/nodes are updated in quick succession such as animation. While visx is not opinionated on which animation library you use (it's compatible with them all since it's just react), in our single "higher-level chart" package Hope that helps. |
Beta Was this translation helpful? Give feedback.
Hi @zkbitcoin 👋 thanks for checking out visx. I'm converting this to a discussion since it's more of a usage question than an issue.
Compared to other react charting libraries that use d3 and let d3 update the DOM directly, visx uses d3 only for math and handles all DOM rendering on its own. Because of react's virtual DOM, this can lead to perf issues when components/nodes are updated in quick succession such as animation.
While visx is not opinionated on which animation library you use (it's compatible with them all since it's just react), in our single "higher-level chart" package
@visx/xychart
we have chosen to usereact-spring
for animations/updates because of it's superior performanc…