I know this might seem very elementary, but I am having trouble understanding why $\displaystyle \frac{|x|}{x}$ looks like this https://www.desmos.com/calculator/lzcondzabk

To my understanding the Xs should cancel out and we should get a new equation disregarding the original. What am I missing here?

Thank you!