Fixed graph resize when browser window resizes