scale graph on window resize