The data given in the table are fitted to the equation $y=m x$ using the method of least squares. The value of $m$ is $\_\_\_\_$ (rounded off to one decimal place).
\[
\begin{array}{|c|c|c|c|c|}
\hline
x & 1 & 2 & 3 & 4 \\
\hline
y & 2 & 6 & 7 & 10 \\
\hline
\end{array}
\]