resize chart on window resize