If y varies directly as x, then the graph of y against x must be a straight line through the origin.
However, if y varies directly as the square of x, for example, then the graph of y against the square of x will be the straight line through the origin - not y against x.