\begin{tikzpicture}
 \pie[text=pin]{10/A, 20/B, 30/C, 40/D}
\end{tikzpicture}