better maths on the pie charts
automatic legend re-positioning when pie charts get too narrow