Set up the field for graph.