Chart.js: Disabling tooltip animation

Created on 28 Apr 2018  ·  3Comments  ·  Source: chartjs/Chart.js

Is it possible to disable the fadein / fadeout animation of tooltips?

support

Most helpful comment

Adding to what others have said here, anywhere in your options object {}, add the following.

hover: {
  animationDuration:0
}

All 3 comments

@Lokilicious I think changing the hover animation duration http://www.chartjs.org/docs/latest/general/interactions/ changes the tooltip animation time.

Would this work for you?

Closing as solved

Please ask questions on StackOverflow: https://stackoverflow.com/questions/tagged/chart.js

Adding to what others have said here, anywhere in your options object {}, add the following.

hover: {
  animationDuration:0
}
Was this page helpful?
0 / 5 - 0 ratings