Home forums Using CanvasJS How to Re render with animation Reply To: How to Re render with animation

#24169

Guilherme,

Chart animates only on the first render, as of now. When you use set method, chart re-renders based on the 3rd parameter. During the first render, as there are no dataPoints present, animation wouldn’t be visible. During second render (happened because of set method) animation wouldn’t happen. To update dataPoints dynamically and to animate chart, you can instantiate the chart, update dataPoints via chart-options and then call chart.render as shown in this updated JSFiddle.


Vishwas R
Team CanvasJS