全局关闭HighCharts中的动画 [英] Turning off animation in HighCharts globally
本文介绍了全局关闭HighCharts中的动画的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用HighCharts生成具有多个系列的多面板图表.据我所知,停止动画的唯一方法是使用
I am using HighCharts for producing multi-panel charts with multiple series. As far as I can tell, the only way to stop the animation is to use an
animation: false
为每个图表设置plotOptions属性的
属性,然后为每个系列再次设置.有没有一种方法可以将所有绘制的图表默认设置为关闭动画?
atrribution for the plotOptions attribute set for each chart, and then again for each series. Is there a way of setting animaiton off by default for all charts drawn?
推荐答案
是的,您必须使用 Highcharts.setOptions
.
这样,您可以为所有图表设置默认选项.
Yes, you have to use Highcharts.setOptions
.
This way you can set default options for all your charts.
Highcharts.setOptions({
plotOptions: {
series: {
animation: false
}
}
});
http://api.highcharts.com/highstock#Highcharts
这篇关于全局关闭HighCharts中的动画的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文