Home forums Using CanvasJS How to animate dynamic updates using React functional components? Reply To: How to animate dynamic updates using React functional components?

#27766

Does that mean that it is IMPOSSIBLE to have a React functional component animate on update? I’ve read the guidance that the chart would need to be recreated on each update so that the animation would occur on first render, but I don’t know how to achieve this with a functional component.

Could this sandbox be modified to show the proper technique?
https://codesandbox.io/s/basic-column-chart-in-react-canvasjs-0gfv6?fontsize=14&hidenavigation=1&theme=dark