Mentioned feature would be a great help in my work.
Got it:
I use just one window.onload now.
All Charts are defined within its function