Make graph resize on window resize