Don't forget to delete the dynamically-created graph.