Resize graph on window resize.

Resize graph on window resize.