\begin{tikzpicture}
 \pie[text=legend]{10/First, 20/Second, 30/Third, 40/Fourth}
\end{tikzpicture}