diff options
Diffstat (limited to 'dev/pgf-pie.sty')
-rw-r--r-- | dev/pgf-pie.sty | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/dev/pgf-pie.sty b/dev/pgf-pie.sty index 7407f90..c9fe681 100644 --- a/dev/pgf-pie.sty +++ b/dev/pgf-pie.sty @@ -164,7 +164,7 @@ chart by using PGF/Tikz package.] } \pgfmathparse{\sum / \value{pgfpie@sliceLength}} \xdef\polarangle{\pgfmathresult} - \pgfmathparse{\radius / \maxValue} + \pgfmathparse{\radius / sqrt(\maxValue)} \xdef\polarRadiusUnit{\pgfmathresult} \else \xdef\theradius{\radius} @@ -177,7 +177,8 @@ chart by using PGF/Tikz package.] \ifpolar % Polar area diagram \addtocounter{pgfpie@angleEnd}{\polarangle} - \xdef\theradius{\p*\polarRadiusUnit} + \pgfmathparse{sqrt(\p) * \polarRadiusUnit} + \xdef\theradius{\pgfmathresult} \else % normal pie \addtocounter{pgfpie@angleEnd}{\p} |