HighCharts turn animation false for line chart

后端 未结 2 942
梦毁少年i
梦毁少年i 2021-02-01 12:40

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.

相关标签:
2条回答
  • 2021-02-01 13:00

    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.

    plotOptions: {
        series: {
            animation: false
        }
    }
    
    0 讨论(0)
  • 2021-02-01 13:02

    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)

    0 讨论(0)
提交回复
热议问题