A pointer to a reference will suffice for an answer.
1. Given an $n$-dimensional smooth manifold $M$, do we have an atlas $\{(U, \phi)\}$ for $M$ such that each $\phi$ has the form: $$\phi(p)=(x^1, \dots, x^n)=(y^1, \dots, y^n, f(y_1, \dots, y^n)) $$ for a smooth function $f: \mathbb{R}^n \to \mathbb{R}$? I.e. can the manifold be "divided into pieces", such that each "piece" is diffeomorphic to the graph of a smooth function?
2. Does the analogous statement hold for topological manifolds? (Replacing "smooth manifold" by "topological manifold" and "smooth function" by "continuous function".)
3. If a second countable, Hausdorff space is locally expressible as the graph of a continuous function, then is it a topological manifold?
(Yes, because the identification $(x^1, \dots, x^n) \leftrightarrow (y^1, \dots, y^n, f(y^1, \dots, y^n))$ is a homeomorphism?)
Note: this question is a duplicate of this unanswered question. For smooth manifolds, the answer obviously involves the implicit function theorem.
However, I am not only considering manifolds which are already explicitly embedded or immersed in $\mathbb{R}^n$. (I.e. I am asking about intrinsic geometry of manifolds not extrinsic.) To the best of my understanding, an embedding could be used to construct such an atlas, but a general immersion cannot. If this understanding is correct, then the answer to 1. in the affirmative follows from Whitney's theorem.)