HighCharts turn animation false for line chart

匿名 (未验证) 提交于 2019-12-03 02:49:01

问题:

I'm new to highCharts and want to know how I can turn off the animation for line charts.

I've tried setting it to false in plotlines but no success.

Thanks

回答1:

It's the same that I answered here but you have to change column to line.

plotOptions: {     line: {         animation: false     } } 

demo

If you want to remove animation from all types you can use series instead.



回答2:

If you want to completely disable all animations in Highcharts (also these happening when toggling lines on or off) use the following:

chart: {     animation: false } 

See http://api.highcharts.com/highcharts#chart.animation for more information. (demo)



易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!