reset min and max value for graph.