javascript amCharts 禁用动画

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/32122542/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-28 14:53:10  来源:igfitidea点击:

amCharts disabling animations

javascriptanimationamcharts

提问by David Tsenter

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.

我正在使用 amCharts 制作一些图表,但由于所述图表中的数据量如此之大,动画滞后并消耗大量处理能力,这是没有必要的。

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

我想知道是否可以禁用 amCharts 串行图表中的所有动画,如果可以,如何禁用?

回答by martynasma

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 startDurationproperty. Just remove it, or set it to zero to disable all animations.

在 amCharts 串行图表动画默认不启用。如果它适合您,则您的图表配置中可能有一行设置startDuration属性。只需删除它,或将其设置为零以禁用所有动画。