Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

amCharts disabling animations

I am using amCharts to make a few graphs, but since the amount of data in said graphs is so large, the animation lags and consumes a lot of processing power, which isn't necessary.

I was wondering if its possible to disable all animations in an amCharts serial chart, and if so, how?

like image 456
David Tsenter Avatar asked Aug 20 '15 15:08

David Tsenter


2 Answers

Remove am4core.useTheme(am4themes_animated) line from your code.

https://www.amcharts.com/docs/v4/concepts/animations/#Using_Animated_theme

like image 51
Mahee Gamage Avatar answered Nov 09 '22 03:11

Mahee Gamage


In amCharts serial charts animation is not enabled by default. If it is on for you, there is probably a line in your chart config which sets startDuration property. Just remove it, or set it to zero to disable all animations.

like image 41
martynasma Avatar answered Nov 09 '22 01:11

martynasma