How do you link action buttons to the graph?

I want to have students press the action button and the y-intercept appear on the graph. I am new to this and have no clue how to do that.

Does something like this help?

thanks,
-greg