Skip to content

How do I integrate visx realtime updating graphs with React JS without re-render of component? #1481

Answered by williaster
zkbitcoin asked this question in Q&A
Discussion options

You must be logged in to vote

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 use react-spring for animations/updates because of it's superior performanc…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@zkbitcoin
Comment options

Answer selected by zkbitcoin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1477 on April 27, 2022 20:59.