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:    



If you have any questions, please feel free to ask in our forums.Ask Question

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.

If you have any questions, please feel free to ask in our forums. Ask Question