Which graph represents y as a function of x?

The answer is D because the line goes through the x-axis