Responsively resize graph on window resize