Made the graph refresh when Enter is pressed.