It only works for linear (straight lines) equations. It is in y=mx+b form x is the x position m is the slope, how steep the line is b is the y intercept, what y position is it in when it passes the blue middle line.
Thanks to my math teacher who taught me the graphing formulas