Resp graph window onload