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
Source:stackexchange.com