animationDuration: Number

Sets the duration of animation in milliseconds.


Default: 1200
Example: 1000, 500 etc.

var  chart =  new  CanvasJS.Chart("container",
{
 .
 .
 animationEnabled: true,
 animationDuration: 2000
 .
 .
});
chart.render();


Try it Yourself by Editing the Code below.

  Also See:    



In order to provide better support,we have closed the comments and switched completely to our Forums.
If you have any questions, please feel free to ask in our forums.

Comments 2

  1. Hi ,
    I had a requirement for doing some action after finishing or animation for line chart, How we can add this event, can you please guide us how to add the new event listener.

    Thank in advance.

In order to provide better support,we have closed the comments and switched completely to our Forums.
If you have any questions, please feel free to ask in our forums.