graph that responds to window size