Updating Inputting data for Graph

I have an input field where data can be added which updates a graph. I want to make sure that when a new data point is added into the input it updates so that there is only one data point at one time. Whats happening is that the graph just keeps on making data point entries.