1๐
โ
I have seen the code
you are using the window.onload = function() two time
you should combine the on load function in a one chart and then use it
it will work
Source:stackexchange.com