From 28fa4141006893c2724058bb1f093a9e42b8eb59 Mon Sep 17 00:00:00 2001 From: Xu Yuan Date: Sat, 1 Oct 2011 20:58:38 +0200 Subject: example of sum --- dev/demo/sum.tex | 4 +++- dev/pgf-pie-manual.tex | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/dev/demo/sum.tex b/dev/demo/sum.tex index 94fd88b..13e2b73 100644 --- a/dev/demo/sum.tex +++ b/dev/demo/sum.tex @@ -1,3 +1,5 @@ \begin{tikzpicture} - \pie[sum=auto, after number=, radius=2]{33/Boy, 7/Girl} + \pie[sum=auto, after number=, radius=2]{33/Boys, 7/Girls} + + \pie[pos={6,0}, sum=40, after number=, radius=2]{33/Boys} \end{tikzpicture} \ No newline at end of file diff --git a/dev/pgf-pie-manual.tex b/dev/pgf-pie-manual.tex index 0d5a2ea..4138749 100644 --- a/dev/pgf-pie-manual.tex +++ b/dev/pgf-pie-manual.tex @@ -111,8 +111,11 @@ The value of \texttt{text} can be \texttt{label}(default) or \demo[0.6]{text} \subsection{Sum} +The value of \texttt{sum} indicats the sum of all data in the chart, +it is 100 by default. It can be calculated automatically when +\texttt{auto} is set. -\demo[0.6]{sum} +\demo{sum} \subsection{Color} \demo{color} -- cgit v1.2.3