Home forums Chart Support How to animate dynamic updates using React functional components? Reply To: How to animate dynamic updates using React functional components?

#27771

I was able to get the chart to animate ONCE by deferring the first render like this:

`
return (
<div className=”App”>
{!initialized && <h1>Loading…</h1>}
{initialized && (
<CanvasJSChart containerProps={containerProps} options={options} />
)}
</div>
);
`
Running code is here.

But how to recreate the CanvasJS chart for animating subsequent updates?