My graph resets when I don't want it to

Your activity is currently private, but not sure if you’re aware also that timeSincePress will reset after a certain time frame. I think default is 10 seconds, but you can extend it by entering a number. timeSincePress(100) changes it to 100 seconds. I don’t know the upper limit.