Example: Pie chart

Published 2015-09-25 | Author: Stefan Kottwitz

Pie charts are popular for showing proportions. A pie chart’s main characteristic is that all items usually sum up to 100 percent. They are displayed as segments of a disc.

We will use the pgf-pie package, which builds on TikZ and is specialized for generating pie charts.

Full explanation in Chapter 9, Creating Graphics: Drawing a pie chart

Download as: [PDF] [TEX]  •  [Open in Overleaf]

Pie chart
% Pie chart
% Author: Stefan Kottwitz
% https://www.packtpub.com/hardware-and-creative/latex-cookbook
\documentclass[border = 10pt]{standalone}
\usepackage{pgf-pie}
\begin{document}
\begin{tikzpicture}
  \pie [rotate = 180]
    {62/\TeX\ Live and Mac\TeX,
     32/MiK\TeX\ and Pro\TeX t, 6/Other \TeX}
\end{tikzpicture}
\end{document}

Comments

Adding comments is currently not enabled.