Make graph responsive to a window resize

Make the graph responsive to when the user resizes the window.