2

I am using ChartJS inside of an angular 7 application. I want to disable the animations on my line series because the series is constantly being updated. I have tried setting

options: {
    animations: false 
}

as well as

options: {
    animation: {
        duration: 0
    }
}

Neither of these worked.

Are there any other options/functions I need to add to the Chart configuration to disable animations?

Irrelevant_Coder
  • 231
  • 1
  • 5
  • 17

1 Answers1

3

I found the answer referenced here in the documentation. I just needed to pass a '0' in the update function like so:

this.chart.update(0);
Irrelevant_Coder
  • 231
  • 1
  • 5
  • 17