Concept:
The equation of a straight line passing through the origin is
\[
y=mx,
\]
where \(m\) is the slope of the line.
Step 1: Substitute the given slope.
Given
\[
m=\frac{1}{\sqrt3}.
\]
Therefore,
\[
y=\frac{x}{\sqrt3}.
\]
Step 2: Remove the denominator.
Multiplying both sides by \(\sqrt3\),
\[
\sqrt3\,y=x.
\]
Hence,
\[
x=\sqrt3\,y.
\]
This matches option (D).