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 Editing The Code

  Also See:    


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

2 Comments

  1. Sreekanth says:

    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