Geometry of graphs of continuous functions intersecting many lines at a few points