Make the graph view responsive to different window sizes.