[Chartjs]-Math.max() doesn't work in IE

9๐Ÿ‘

โœ…

Use apply instead of the spread operator:

max: Math.max.apply(this, data.datasets[0].data) + 15,

This works on IE: jsfiddle

0๐Ÿ‘

You can use any one of flowing for IE-11:

Math.max.apply(this, array)
Math.max.apply(window, array)
Math.max.apply(null, array)
Math.max.apply(array, array)

help URL: Replit

Leave a comment