Where is the x-axis and y-axis located? In a graph the x-axis is the horizontal line and the y-axis is the vertical one.