0👍
Issue is not in chart.js. If you remove everyhting except for prototyp it still throws the same error that this.each is not defined. So it seems to be a bug in that version of prototype. So to solve it you just need to update to a newer version.
- Chartjs-How can i add additional Data(Type) to chart.js
- Chartjs-ChartJs xAxis incorrect order on auto update
Source:stackexchange.com