changing setOnLoadCallback to change chart draw method,
this way there is no need to change chart ploting code
organizing code