From 712b02d3c15f191c2ffd0f088891081dda41f2fe Mon Sep 17 00:00:00 2001 From: skyanth Date: Fri, 13 Jan 2017 10:47:45 +0100 Subject: [PATCH] Changes to pie charts Improved line direction for smaller percentages, placed percentage for larger slices outside the pie --- xml/xslt/auto.xslt | 47 +++++++++++++++++++++++++++++++++++----------- 1 file changed, 36 insertions(+), 11 deletions(-) diff --git a/xml/xslt/auto.xslt b/xml/xslt/auto.xslt index a54a8c7..1745cb6 100644 --- a/xml/xslt/auto.xslt +++ b/xml/xslt/auto.xslt @@ -615,19 +615,19 @@ + select="math:sin(3.1415292 * (($angle - $part_half) div 180.0)) * ($radius * 1.15)"/> - + select="math:cos(3.1415292 * (($angle - $part_half) div 180.0)) * ($radius * 1.15)"/> + - - - + + + - + - + % @@ -635,17 +635,32 @@ + + + + +10 + -10 + + + + + + + + + none - + - + + @@ -655,6 +670,16 @@ +