It is not only a fully functional graph visualization library, but also an explorer of data relationships.
!!!###!!!title=102-How to automatically update chart data in React components——VisActor/VChart FAQ documents!!!###!!!
How to automatically update chart data in React components?
Question Description
How can we achieve automatic updating of chart data in a chart component wrapped with React?
Solution
In VChart, you can update the chart by calling either updateSpec or updateData.
To update the chart data, you can save the chart instance using ref when initializing the chart instance in a React component. Then, use useEffect to set the dependencies to the data that needs to be updated, and call the chart instance's updateData method in the callback function.