I am totally new to LaTeX and pgfplots,... I copied an example for pie charts from another blog. The problem: I don't want the labels in my pie chart. Could you please help me?

This is what I have already (H_S_3 is the name of my plot):





    %outerlabel={\name\ (\DTLpievariable)},
\DTLdocurrentpiesegmentcolor\rule{10pt}{10pt} &

How can I delete the numbers from my pie chart?

my preamble:


\geometry{a4paper,left=28mm,right=28mm, top=25mm, bottom=25mm} 





%PGF Plots
  • Welcome to TeX.SX! A tip: If you indent lines by 4 spaces, they'll be marked as a code sample. You can also highlight the code and click the "code" button (with "{}" on it). Please complete your code with \documentclass{...}, the required \usepackage's, \begin{document}, and \end{document}. That may seem tedious to you, but think of the extra work it represents for TeX.SX users willing to give you a hand. Help them help you: remove that one hurdle between you and a solution to your problem. – jub0bs Jun 23 '14 at 16:53
  • Please don't break the code into different parts in your question; instead, edit your question to turn your code into a minimal working example (MWE). – jub0bs Jun 23 '14 at 17:04
  • Note that you're not actually using pgfplots here, which doesn't have features for making pie charts. datapie is a part of the datatool bundle, and is not related to pgfplots. – Torbjørn T. Jun 23 '14 at 17:10

You can set the formatting of the number with the innerlabel key. Note in your example that there is a commented line that says


Change this to


and the numbers will be removed.

A complete example:


    innerlabel={},  % <-- 

enter image description here


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.