\documentclass{jarticle}
\usepackage{datapie,databar}

\begin{document}

\DTLloaddb{fruit}{fruit.csv}

\begin{figure}[htbp]
\centering
\DTLpiechart{variable=\quantity,%
innerlabel={\DTLpiepercent\%},%
outerlabel={\name\ (\DTLpievariable)}}{fruit}{%
\name=Name,\quantity=Quantity}
\caption{A Pie Chart (Changing the labels)}
\end{figure}

\end{document}
