I need to have labels on my pie chart and I am looking at the example of the pie chart: http://raphaeljs.com/pie.html.
In my implementation and on the example, the labels are not consistently the same distance away from the pie chart. Is there something wrong with the math used? It doesn't really make sense to me.
txt = paper.text(cx + (r + delta + 55) * Math.cos(-popangle * rad), cy + (r + delta + 25) * Math.sin(-popangle * rad), labels[j])
(Taken from http://raphaeljs.com/pie.js)