Using action button to activate a graph

I would like an action button to turn a graph on. I am going to use this to let the student see if the equation they have graphed is correct.

You can either show the graph when the pressCount is greater than zero. I usually turn it on when the timeSincePress is greater than zero. This post shows several types.

https://cl.desmos.com/t/action-button-reveals-graph

Thank You. I can make those work. One other question. Is there code to have the graph time out? So once the student hits the button to see the graph it only appears for a few seconds?

Thanks,
Burton

This example is set to only show when the timeSincePress is less than 2 seconds.

Perfect. Thanks. Burton