You may have mixed up the x-coordinate and y-coordinate. When the x-coordinate is 0, the point is located on the y-axis, not the x-axis.